stonedz/pff2

A simple yet robust PHP MVC framework

Installs: 534

Dependents: 7

Suggesters: 0

Security: 0

Stars: 1

Watchers: 6

Forks: 5

Open Issues: 2

Type:pff2-core


README

Build Status Coverage Status Latest Stable Version License

Composer Installation

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": "3.0.x-dev"
    },
    "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)

Docker integration

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.