pavog / slim4-skeleton

A Slim 4 Skeleton for Apache

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Slim 4 Skeleton for Apache

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

  • Download and extract the ZIP file: master.zip
  • Run: composer update
  • Upload all files to the webserver
  • Open the website
  • You should see a message: Hello, World!

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

About

A Slim 4 Skeleton for Apache

License:MIT License


Languages

Language:PHP 88.3%Language:CSS 6.4%Language:HTML 4.7%Language:JavaScript 0.5%