ddrv/slim-app

Simple web application based on slim/slim and symfony/console

Maintainers

Details

github.com/ddrv/slim-app

Source

Issues

Installs: 11

Dependents: 0

Suggesters: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

Type:project

2.1.0 2019-03-19 04:01 UTC

README

Skeleton application based on slim/slim and symfony/console

Requirements

Install

  1. Create project with composer

    composer create-project ddrv/slim-app path/to/project
    
  2. Change config files /path/to/project/config/local.php and /path/to/project/config/test.php.

  3. If you using environment variable APP_ENV, rename config file

    mv ./config/local.php ./config/{$APP_ENV}.php
    
  4. Add to cron every minutes command

    * * * * * /path/to/php /path/to/project/bin/console schedule:run
    

    see ./config/global.php -> schedule

Testing

php ./vendor/bin/phpunit

Development

  1. Start development server

    php ./bin/console app:dev 8080
    
  2. Open home page or hello page