ddrv/slim-app

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

Installs: 18

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 0

Type:project

2.1.0 2019-03-19 04:01 UTC

This package is auto-updated.

Last update: 2024-10-24 03:03:54 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