sebsept / php-starter
SoigneMoi webcli
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 1
Open Issues: 0
Type:project
Requires
- php: >=8.2
- ext-ctype: *
- ext-iconv: *
- doctrine/doctrine-bundle: ^2.12
- doctrine/doctrine-migrations-bundle: ^3.3
- doctrine/orm: ^3.1
- nelmio/cors-bundle: ^2.4
- phpdocumentor/reflection-docblock: ^5.3
- phpstan/phpdoc-parser: ^1.27
- symfony/asset: ~7.0.0
- symfony/asset-mapper: ~7.0.0
- symfony/console: ~7.0.0
- symfony/dotenv: ~7.0.0
- symfony/expression-language: ~7.0.0
- symfony/flex: ^1.17 || ^2
- symfony/framework-bundle: ~7.0.0
- symfony/property-access: ~7.0.0
- symfony/property-info: ~7.0.0
- symfony/runtime: ~7.0.0
- symfony/security-bundle: ~7.0.0
- symfony/serializer: ~7.0.0
- symfony/twig-bundle: ~7.0.0
- symfony/validator: ~7.0.0
- symfony/yaml: ~7.0.0
- twig/extra-bundle: ^2.12 || ^3.0
- twig/twig: ^2.12 || ^3.0
Requires (Dev)
- brianium/paratest: ^6.11
- dama/doctrine-test-bundle: ^8.0
- doctrine/doctrine-fixtures-bundle: ^3.5
- ergebnis/composer-normalize: ^2.42
- fakerphp/faker: ^1.23
- phpstan/phpstan: ^1.10
- phpstan/phpstan-doctrine: ^1.3
- phpunit/phpunit: ^9.5
- rector/rector: ^1.0
- symfony/browser-kit: ~7.0.0
- symfony/css-selector: ~7.0.0
- symfony/debug-bundle: ~7.0.0
- symfony/maker-bundle: ^1.52
- symfony/monolog-bundle: ^3.0
- symfony/phpunit-bridge: ^7.0
- symfony/stopwatch: ~7.0.0
- symfony/web-profiler-bundle: ~7.0.0
- vincentlanglet/twig-cs-fixer: ^2.6
- zenstruck/browser: ^1.8
- zenstruck/foundry: ^1.37
Conflicts
Replaces
This package is auto-updated.
Last update: 2024-11-12 11:25:25 UTC
README
! This repository is at an early stage of development. I use it to fast start my own projects/tests.
PHP / Docker / Composer Project Bedrock
Ready to use repository for any symfony project. This provides a Docker image and files to bootstrap a Symfony project.
Motivation
Avoid doing always the same things when starting a composer project. Learn Docker, php server admin.
Features
- docker php image based on php-fpm (alpine linux)
- xdebug, intl, pdo_pgsql
- composer
- fish shell
- symfony cli
- psysh
- just file for just task runner
Justfile
Shortcuts to run commands in the container using just task runner
in .justfile
to help with common tasks.
- up # docker-compose up -d
- update # update source files + docker compose down+up + tests
- fish # open a fish shell on the container
- new-controller
- new-api # new api controller + migrations
- db-create # drop and recreates the db (for dev)
- db-migrate # doctrine:migrations:migrate --no-interaction
- db-create-test # create test db
- db-fixtures-make # create fixtures in dev db
- make:fixtures
- db-fixtures-load
- console # run a symfony console
- req package # composer req
- req-dev package
- tests # run phpunit tests
- test # run a single test
- make-test
- sql # run sql command using {{console}} dbal:run-sql
- psysh
Requirements
- docker compose
- just task runner
- xdg-open for
init
command (typexdg-open
in your terminal to test)
Getting started
Check requirements above.
- Click the Use this template green button on top of this page (github).
- Clone your new repository
- In your terminal :
just init
(orjust init-alt
if xdg-open not available)
Done ! Ready to dev.