fra-c / slim-behat-skeleton
Installs: 19
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Type:project
Requires
- php: ~7.2
- slim/slim: ^3.10
- vlucas/phpdotenv: ^2.5
Requires (Dev)
- behat/behat: ^3.5
- phpunit/phpunit: ^7.3
This package is not auto-updated.
Last update: 2025-05-11 09:17:26 UTC
README
Skeleton application using Slim 3 and Behat.
The following instructions assume you're using Docker.
Install
Run the following command to create the project (replace [my-app-name]):
$ docker run -it --rm -v $(pwd):/app composer create-project fra-c/slim-behat-skeleton [my-app-name]
Create .env
file and optionally edit to your needs:
$ cp .env.example .env
Run tests
Run Behat tests with:
docker-compose run --rm php vendor/bin/behat
Composer command
To run composer:
docker run -it --rm -v $(pwd):/app composer [command] [options] [...]
Example:
docker run -it --rm -v $(pwd):/app composer require --dev phpunit/phpunit
Note: Sometimes packages require extensions that won't be found in the composer image. To fix the problem run composer adding the flag --ignore-platform-reqs