A Vagrant box, customised for WHMCS development, built on Ubuntu 20.04 LTS (Focal Fossa). It sets up all the stuff you're dreading.
- PHP 7.4
- MySQL 8.0
- ionCube Loaders v10.4.5
- Cron support (every 5 minutes)
- Vagrant
- Virtualbox
- A valid WHMCS license (development licenses are fine)
- A copy of WHMCS
- Clone the repo to your local computer
- Move the WHMCS source code into the
public/whmcs
directory, which should contain anempty
file. - Edit the IP in
Vagrantfile
if you wish - Run
vagrant up
- Head to
192.168.13.37
(or the IP you changed it to) - Follow the on-screen instructions
- Enjoy, we hope that's eased the development burden!
You can create additional databases on first provision (or after a vagrant destroy
and vagrant up
). You can configure those in config.json
. By default, only one database will be created, whmcs_default
.
You can create a line in your systems hosts file to use a hostname instead of the boxes IP address. A guide to edit your hosts file can be found here.
The default installation path is /public/whmcs
but you can move that, or create additional installations as you see fit.
You can remove the cron or change it's frequency as you see fit, just vagrant-ssh
into the box and run crontab -e
to edit it.
Salmon for WHMCS extends many of the default models with extended functionality, making it easier to query the Eloquent models. It also contains an array of helper classes to make common tasks in WHMCS simpler and easier to do.
Copyright Grizzlyware Ltd
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.