Development Environment

The easiest way to load locally is to install Laravel Valet (if you're running a Mac). Follow the instructions to install; you install it, go to your phpvms directory, and run:

valet link phpvms

Now going to http://phpvms.test should work. If you want to use mysql, follow the valet directions on installing mysql (brew install mysql) and then update the env.php file to point to the mysql.

The default username and password are and admin. To see the available users in the development environment, see this file

There is no reason you can't use MAMP or XAMPP, or if you're feeling fancy, using Docker or configuring any webservers yourself.

This is just how I work on phpVMS, to quickly reset the database and test/develop items locally, without having to transfer files anywhere.

This requires sqlite to be installed on your system

To quickly setup a running install, you can do this:

git clone phpvms
cd phpvms
composer update
php artisan phpvms:dev-install

The phpvms:dev-install command creates the two config files: config.php and env.php. It will then run the migrations, and install the sample seed data, which is located in app/Database/seeds/sample.yml

Then to reset the database and reinstall the dev data:

php artisan phpvms:dev-install --reset-db

This does require sqlite. If you want to use MySQL, you need to run the phpVMS installer, so it can generate the config files for MySQL (or you can modify the generated config.php), then you can run the above command to reset the database and migrations in MySQL.

extract files and run the migrations:

php artisan migrate

By default, the Makefile calls the system-wide composer. If your host requires a certain path or name for composer, add COMPOSER= to the front of the make command, e.g:

COMPOSER=composer.phar make install