Fork and update FreePBX modules effortlessly with this command-line application. This will clone the repository, switch to the specified branch, and update the modules directory with a symlink.
This project is not affiliated with FreePBX nor my current employer. It is intended for educational purposes only.
To install the devfork tool, clone this repo and follow these steps:
composer install
Use the following command to fork and update FreePBX modules:
php bin/devfork --help
-b, --branch=BRANCH
: The branch to switch to (default: "master").-u, --username[=USERNAME]
: Your GitHub username.-t, --token[=TOKEN]
: Your GitHub personal access token.--clone-path[=CLONE-PATH]
: The path for cloning repositories.--web-path[=WEB-PATH]
: The path for the web modules.-h, --help
: Display help for the command.
You can set parameters in ~/devfork.json
. Example:
{
"github": {
"username": "your_username",
"token": "your_personal_access_token"
},
"paths": {
"clone": "/usr/src/",
"web": "/var/www/html/admin/modules"
}
}
Don't forget to run composer install
to install the required dependencies.
composer install
Contributions are welcome! Feel free to open issues and submit pull requests.
This project is licensed under the MIT License - see the LICENSE file for details.