sunaryohadi / slim-api-skeleton
A Slim Framework skeleton application for API development
dev-master
2018-11-29 00:26 UTC
Requires
- php: >=5.6.0
- monolog/monolog: ^1.21
- slim/slim: ^3.5
- sunaryohadi/ezsql-mysqli: ^1.2
Requires (Dev)
- phpunit/phpunit: >=5.5 < 6.0
This package is auto-updated.
Last update: 2024-10-29 05:40:34 UTC
README
This is a simple skeleton project for Slim 3 that includes ezSQL.
Also theres same component, which is mostly required.
Requirements
- PHP 5.6.x or newer
- MySQL Server 5.x or newer
Create your project:
$ composer create-project -n -s dev sunaryohadi/slim-api-skeleton my-app
Run it:
$ cd my-app
$ composer start
- Browse to http://localhost:8080
Key directories
private
: Application codeprivate/src
: All class files within theprivate
namespacetmp/log
: Log filesweb
: Webserver rootprivate/routes
: Router fileprivate/vendor
: Composer dependencies
Key files
web/index.php
: Entry point to Applicationprivate/settings.php
: Configurationprivate/dependencies.php
: Services for Pimpleprivate/middleware.php
: Application middlewareprivate/routes/root.php
: Main route are hereprivate/src/Action/...
: Action classes better here