Home
The Slim Starter project is a starting point for building an application using the Slim Framework.
This project is a stripped-down version of the
Slim Example Project
containing only the skeleton, a few example features and a modest design.
It's built to be expanded with additional features to build an application quickly and efficiently.
Included features (tested with PHPUnit):
- Home page
- User list page with users fetched via Ajax after page load
- User read page where values can be edited via contenteditable
- API endpoint: /api/users with frontend example
- Dark / light theme switch
The Slim Starter is built with the following technologies:
- Slim 4 micro-framework
- Dependency Injection - PHP-DI
- Template rendering - PHP-View
- Database migrations - Phinx
- Validation - cakephp/validation
- Logging - Monolog
- Integration testing - PHPUnit
- Query Builder - cakephp/database
- Error handling - slim-error-renderer
- GitHub Actions - Scrutinizer
- Coding standards fixer - PHP CS Fixer
- Static code analysis - PHPStan
Documentation
Relevant pages for this project:
- Configuration
- Composer autoload
- Dependency Injection
- Routing
- Middleware
- Action
- Domain
- Repository and Query Builder
- Database migrations
- Writing tests
- Template rendering & asset handling
- JS-Modules, Ajax, Contenteditable fields
- Dark theme
- Validation
- Error handling
- Architecture
- Single Responsibility Principle
- CI/CD with GitHub Actions
- PHP CS-Fixer & PHPStan
- Xdebug