Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/leocavalcante/create-siler-app
🧱 Set up a modern Siler app by running one command.
https://github.com/leocavalcante/create-siler-app
boilerplate bootstrap create-app pest php siler skeleton swoole
Last synced: 29 days ago
JSON representation
🧱 Set up a modern Siler app by running one command.
- Host: GitHub
- URL: https://github.com/leocavalcante/create-siler-app
- Owner: leocavalcante
- License: mit
- Created: 2020-08-03T22:34:45.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-06-10T11:59:39.000Z (over 2 years ago)
- Last Synced: 2024-10-03T10:49:59.601Z (about 2 months ago)
- Topics: boilerplate, bootstrap, create-app, pest, php, siler, skeleton, swoole
- Language: PHP
- Homepage:
- Size: 415 KB
- Stars: 16
- Watchers: 6
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# create-siler-app
🧱 Set up a modern [Siler](https://github.com/leocavalcante/siler) app by running one command.```bash
composer create-project siler/app my-app
```## Scripts
### `composer start`
Runs [CLI SAPI built-in web server ](https://www.php.net/manual/en/features.commandline.webserver.php) on port 8080.### `composer swoole`
Runs [Swoole web server](https://www.swoole.co.uk/) on port 9501.#### `docker-compose up`
Runs [Docker](https://www.docker.com/) using [Dwoole](https://github.com/leocavalcante/dwoole) on port 9501 as well.## DevTools
It uses [`ramsey/devtools`](https://github.com/ramsey/devtools) with [Pest](https://pestphp.com/) override for `test:unit`.
```bash
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.