Skip to content
A Slim 4 Skeleton
PHP CSS HTML JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin Rename Application to Startup Sep 15, 2019
config Rename Application to Startup Sep 15, 2019
logs Add logs directory Sep 12, 2019
public Rename Application to Startup Sep 15, 2019
resources Update schema Sep 13, 2019
src
templates Update text Sep 12, 2019
tests Fix cs Sep 15, 2019
tmp Add logs directory Sep 12, 2019
.cs.php Init Aug 19, 2019
.editorconfig Init Aug 19, 2019
.gitattributes Init Aug 19, 2019
.gitignore Add logs directory Sep 12, 2019
.htaccess Init Aug 16, 2019
.phpstorm.meta.php Init Aug 19, 2019
.scrutinizer.yml Fix scrutinizer Aug 20, 2019
.travis.yml Schange dist to bionic Sep 15, 2019
LICENSE Init Aug 16, 2019
README.md Update README.md Sep 12, 2019
composer.json Add database tests Sep 12, 2019
phpcs.xml Init Aug 19, 2019
phpstan.neon Fix tests Aug 24, 2019
phpunit.xml Init Aug 19, 2019

README.md

Slim 4 Skeleton

Latest Version on Packagist Software License Build Status Coverage Status Quality Score Total Downloads

Features

This is a simple web application skeleton project that uses the Slim 4 Framework:

Requirements

  • PHP 7.1+
  • Composer

Installation

Run this command from the directory in which you want to install your new Slim Framework application.

composer create-project odan/slim4-skeleton {my-app-name}

Replace {my-app-name} with the desired directory name for your new application. You'll want to:

  • Ensure logs/ and tmp/ is web writable.
  • Open the app url
  • You should see a message: Hello, World!

Download

  • You can also download the latest version as ZIP file: master.zip

Routes

  • GET / => Hello, World!
  • GET /hello/john => Hello, john!
  • GET /time => Current time: ...
  • POST /users => json response

Tests

Start unit- and API integration tests with:

composer test

Start unit- and API integration tests + full coverage report with:

composer test-coverage

The code coverage report (xml and html) output directory is: build/coverage

License

  • MIT
You can’t perform that action at this time.