To setup a new project:
- Create e new directory
- Install composer in the directory (or do a global composer install). See here for the instructions. - Create a composer.json file with the following content:
{
"name": "company/project-name",
"description": "",
"minimum-stability": "beta",
"license": "proprietary",
"authors": [
{
"name": "",
"email": ""
}
],
"require": {
"stonedz/pff2": "~2",
"stonedz/pff2-installers": "v2.0.7",
"stonedz/pff2-doctrine": "*"
},
"autoload": {
"psr-4": {
"pff\\models\\": "app/models",
"pff\\controllers\\": "app/controllers",
"pff\\services\\": "app/services"
}
}
}
- Run
php composer.phar install
- Run
vendor/bin/init
(and follow on screen instructions)
Install docker and docker-compose on your system, then
$ docker-compose up
The first time the containers are generated a new Mariadb admin password will be created and shown on the console, use that to connect your app to the DB. you can also use the same username and password in phpmyadmin to manage your db.
You can modify the file docker-compose.yml to change ports and settings for the containers.
Please see the Wiki for more informations.