Sample project to get started with the Symfony web framework for an upcoming project. Repository is public for educational purposes. Feel free to use it.
Disclaimer: The API of this litte educational project is intentionally insecure to keep it simple. My next project won't include an API anyway.
- PHP 7.2.5 or higher (PHP 7.3+ recommended)
- PHP Composer
- MariaDB (recommended) or MySQL
- Node.js and npm (for building the assets)
- PHP Module:
ctype
- PHP Module:
iconv
- PHP Module:
gmp
- PHP Module:
mbstring
- Clone this repository
- Create a
../data
(outside of project source) directory and make sure it is writable by the web server - Run
composer install --no-dev --optimize-autoloader
to install the dependencies - Run
npm run build
to build the assets - Point your PHP-enabled web server to the
public
directory
- Character set:
utf8mb4
- Collation:
utf8mb4_unicode_ci
composer install
npm install
- Create
.env.dev.local
with aDATABASE_URL
(see example in.env
)
npm run watch
bin/phpunit