[ABANDONED] Vagrant VM with bash(shell) provision for PHP development
This package is abandoned and no longer maintained. The author suggests using the Ansible instead.
PHPell is an open source Vagrant VM configuration with bash(sh) provision for PHP development.
It was inspired by PuPHPet and Phansible.
PHPell includes:
Edit configuration in /Vagrantfile and /config.sh
Install Vagrant VM from console:
cd /path/to/your/phpell
vagrant up
Run Vagrant VM from console:
cd /path/to/your/phpell
vagrant ssh
###Helpers
In the VM you can use helpers for virtual hosts and databases management:
Helper create-host
create new host and new user (has name as new host) and create-web-user
create only new user:
sudo create-host --host=example.local --password=password_for_example
sudo create-web-user --user=example.local --password=password_for_example
Helper enable-host
enable host:
sudo enable-host --host=example.local
Helper disable-host
disable host:
sudo disable-host --host=example.local
Helper create-mysql-db
create new empty MySQL DB with granted user:
create-mysql-db --database=example_db --user=example.local --password=password_for_example --root=root_password_for_example
mysql -u example.local -ppassword_for_example -D example_db
Helper backup-mysql-db
zip and backup MySQL DB to /var/backups/example.local
directory:
backup-mysql-db --database=example_db --user=example.local --password=password_for_example
Helper create-postgres-db
create new empty Postgres DB with granted user:
sudo create-postgres-db --database=example_db --user=example.local --password=password_for_example
sudo -u example.local psql -U example.local -d example_db
Helper backup-postgres-db
zip and backup PostgreSQL DB to /var/backups/example.local
directory:
sudo -u example.local backup-postgres-db --database=example_db --user=example.local
The PHPell is open source software licensed under the GPL-3.0 license.