Skip to content
A comple{te,x} Symfony app template with everything I need
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
ansible
assets
bin
config
public
src
templates
tests
translations
var
.babelrc
.env
.env.test
.eslintrc
.gitignore
.lintstagedrc
.php_cs.dist
.prettierrc
.stylelintrc
.travis.yml
Makefile
README.md
README_APP.md
Vagrantfile
behat.yml.dist
composer.json
composer.lock
cypress.json
jest.config.js
package.json
phpspec.yml
phpstan.neon
phpunit.xml.dist
postcss.config.js
symfony.lock
vagrant-wrapper.sh
webpack.config.js
yarn.lock

README.md

Symfony App Template

Build Status

Functionnalities

  • A Virtual Machine with PHP 7.3, NodeJS 10, PostgreSQL 10, Redis
  • Symfony 4.3 for web app (var/cache and var/log directories are cached into the VM to prevent degradation of performance)
  • Doctrine Extensions & Fixtures
  • API Platform & API key authentication
  • Webpack Encore with Vue/JSX support

Quality tools

  • PHPStan
  • PHP-CS-Fixer
  • SensioLabs Security Checker
  • ESLint
  • Stylelint
  • Prettier

Testing tools

  • PHPUnit, for unit tests (PHP)
  • phpspec, for spec tests (PHP)
  • Behat (with Mink & Behatch Contexts), for functionnal tests (PHP)
  • Jest (with Vue & JSX support), for unit tests (JS)
  • Cypress, for functionnal/E2E tests (JS, in the browser)

Misc

  • A pre-commit hook to prettify .php, .js(x), .vue, .json, .y(a)ml, and .md files
  • A Vagrant wrapper to ensure commands are run in the VM (e.g.: ./vagrant-wrapper sf clear:cache inside or outside the VM)
  • Installed Sentry (PHP & JS) (configure SENTRY_DSN in .env file)
  • Configured Travis

Use this template

  • Click on the green button Use this template
  • While this is not fixed, you have to run chmod +x vagrant-wrapper.sh bin/* to make those files executable (see https://twitter.com/HugoAlliaume/status/1148213252305903616)
  • Edit the file README_APP.md :
    • Update Travis badge
    • Update access links to the app
  • Update occurrences of symfony-app-template, SymfonyAppTemplate, ...by your app name
  • Replace file README.md by the file README_APP.md
You can’t perform that action at this time.