siler / app
Set up a modern Siler app by running one command.
Installs: 82
Dependents: 0
Suggesters: 0
Security: 0
Stars: 16
Watchers: 6
Forks: 2
Open Issues: 3
Type:project
Requires
- hassankhan/config: ^2.1
- leocavalcante/siler: ^1.7.5
- monolog/monolog: ^2.1
Requires (Dev)
- pestphp/pest: ^0.3
- phpunit/phpunit: ^9.3
- ramsey/devtools: ^1.4
- roave/security-advisories: dev-master
- swoole/ide-helper: ^4.5
README
🧱 Set up a modern Siler app by running one command.
composer create-project siler/app my-app
Scripts
composer start
Runs CLI SAPI built-in web server on port 8080.
composer swoole
Runs Swoole web server on port 9501.
docker-compose up
Runs Docker using Dwoole on port 9501 as well.
DevTools
It uses ramsey/devtools
with Pest override for test:unit
.
analyze analyze:phpstan Runs the PHPStan static analyzer. analyze:psalm Runs the Psalm static analyzer. build build:clean Removes everything from the build directory that is not under version control. build:clear-cache Removes everything from build/cache that is not under version control. lint lint:fix Checks source code for coding standards issues and fixes them, if possible. test test:all Runs linting, static analysis, and unit tests. test:coverage:ci Runs the unit test suite and generates a Clover coverage report. test:coverage:html Runs the unit test suite and generates an HTML coverage report. test:unit Runs the unit test suite.
How-to
bootstrap.php
Is a good place to startup your application, things like database connections, dependency injection containers, setups etc.
index.php
Is called on each request, is a good place for routes and things that depends on the current request.