sunaryohadi / slim-api-skeleton
A Slim Framework skeleton application for API development
Installs: 8
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/sunaryohadi/slim-api-skeleton
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: 2025-09-29 01:17:06 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 theprivatenamespacetmp/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