Download the PHP package chriha/project-cli without Composer
On this page you can find all versions of the php package chriha/project-cli. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package project-cli
Project CLI
ProjectCLI is a command line tool that translates complex tasks into simple, single commands. It also helps keeping a standard project structure across all projects. Here are some benefits of using ProjectCLI:
- Initialize, setup and start whole environments (incl. web server, database, caching, mail server, etc.) in seconds
- Set up even complex projects with a single command
- Use (force) the same directory structure in every project
- Reduce amount of necessary commands for each developer
- The same environment, tools and versions for every developer
- Easier and colored log-tailing
- Write your own commands and plugins to extend ProjectCLI
- Simple
/etc/hostsand SSH config management
For the plugin registry, more info, the documentation and some examples, check out cli.lazu.io.
TOC
- Getting Started
- Dependencies
- Install
- Update
- Usage
- Create a new project
- Start and stop environment and its services
- Run any service specific command
- Show service status and resource statistics
- Logging
- Hosts File
- Xdebug
- Docker commands
- Uninstall
Getting Started
Prerequisites
- PHP CLI 7.2 or newer (incl. extensions: zlib, json, intl, xml, curl)
Install dependencies via Homebrew
Install dependencies on Ubuntu
Make sure the available version meets the requirements:
If not, add the following repository:
Install the PHP CLI and extensions:
Install ProjectCLI
After you've installed all here and move it to /usr/local/bin/project or /usr/bin/project, depending on your system. The project command will be available after you restart your terminal session.
Update
To manually update ProjectCLI, just use the project self-update command.
Usage
It's mandatory, that the project has the according directory structure and files in order for ProjectCLI to work properly.
Project Structure
Create a new project
Clone and automatically install existing projects
To create an automated setup for an existing project, you need to add a setup command via
project make:command SetupCommand. In the handle() method, you specify the commands to set up
the project (eg. copy env files, run migrations, seed test data, compile static files, etc).
The clone command will clone the repository and ask, if the project should be set up via the
existing setup command.
Start and stop environment and its services
Run any service specific command
ProjectCLI will run all commands inside the according Docker service.
Show service status and resource statistics
Logging
Find all your log files and see what's happening with your application. It'll also warn you, if your files get too big.
Xdebug
Enable and disable Xdebug with a single command.
Hosts File
List, enable, disable, add, remove and check hosts for existence
Whenever you change the hosts file (eg. enable, disable, add, rm), you have to run the command with sudo / as root.
ProjectCLI will create backups, but only keeps the last two versions.
Docker commands
Run Docker Compose commands with your docker-compose.yml
Using bash inside a container / service
Uninstall
All versions of project-cli with dependencies
ext-curl Version *
ext-intl Version *
ext-json Version *
ext-xml Version *
guzzlehttp/guzzle Version ^6.3
illuminate/container Version ^5.8
illuminate/support Version ^5.8
phlak/semver Version ^2.0
psr/log Version ^1.1
sensiolabs/security-checker Version ^6.0
symfony/console Version ^4.3
symfony/dotenv Version ^4.3
symfony/event-dispatcher Version ^4.3
symfony/process Version ^4.3
symfony/var-dumper Version ^4.3
symfony/yaml Version ^4.3