Download the PHP package jtrw/php-make without Composer
On this page you can find all versions of the php package jtrw/php-make. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jtrw/php-make
More information about jtrw/php-make
Files in jtrw/php-make
Package php-make
Short Description Simple collections of make commands to increase productivity. This package gives you make commands to run your project easily. You can also customize the make commands to fit your project needs. Make commands o help work with docker, git, composer, migrations symfony, migrations laravel, tests, static analysis, and more.
License MIT
Informations about the package php-make
PHP Make
Useful PHP Makefile for PHP projects. Why Makefile? Because it's simple and easy to use and it's a standard tool for Unix systems. Simple collections of make commands to increase productivity. In this project I collect useful commands for PHP projects. Most of the commands are related to Docker projects.
Install
composer require jtrw/php-make
- Run
/vendor/bin/php-make
command for copy template Makefile to your project if Makefile exists it will be not overwritten. -
If you use your own Makefile, you can add the following line to your Makefile:
-
Add to your .env file variable
PHP_FPM_NAME
andAPP_ENV
for example: - Use
make help
to see all available commands.
Usage
image:
Description
File composer.mk
contains commands for composer.
File docker.mk
contains commands for docker.
File migrations-symfony.mk
contains commands for Symfony migrations.
File migrations-laravel.mk
contains commands for Laravel migrations.
File static-analysis.mk
contains commands for static analysis.
File utils.mk
contains useful commands.
File docker-compose-shared-services.mk
contains commands for docker-compose. Shared services docker-compose-shared-services.yml
it is a file with shared services for docker-compose. For example it's services that use in local development environment.
Example of docker-compose-shared-services.yml
:
And main file docker-compose.yml
:
In this case, you can use make shared-service-start
to start shared services and make shared-service-stop
to stop shared services.
or simple command make start-all
to start all services.
License
The MIT License (MIT). Please see License File for more information.