Download the PHP package subdesign/laravel-webfaction without Composer
On this page you can find all versions of the php package subdesign/laravel-webfaction. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download subdesign/laravel-webfaction
More information about subdesign/laravel-webfaction
Files in subdesign/laravel-webfaction
Package laravel-webfaction
Short Description Webfaction API wrapper for Laravel
License MIT
Homepage https://github.com/subdesign/laravel-webfaction
Informations about the package laravel-webfaction
DEPRECATION WARNING
Webfaction will end it's services possibly from May 2021, so the package won't be maintained in the future.
Laravel-Webfaction
Webfaction API wrapper for Laravel
Requirements
Laravel 5.x
Installation
Install with composer
If you use Laravel 5.5+, you don't need to do the following two steps.
Add Service Provider to the config/app.php
Add Facade to the config/app.php
Publish the webfaction.php
config file
Set the credentials and other data in the .env
file
Where WF_USERNAME
and WF_PASSWORD
is your control panel username and password.
If you have multiple machines, you can define the machine name WF_MACHINE
like Web123 on which one you want to use the API.
WF_DEBUG
will show debug information in the response, with WF_DEBUG_LEVEL
you can set debug verbosity. Values: 0, 1 and 2.
Dependency
The package has a dependency which is automatically installed: https://github.com/gggeek/phpxmlrpc
Usage
You can find some examples here but all API methods described on https://docs.webfaction.com/xmlrpc-api/apiref.html.
You have to use API calls the same way as you find in the API documentation. Eg. list_disk_usage
in docs is the method list_disk_usage()
in the API call.
List disk usage:
On create methods, you have to pass an array of values (except session_id
) in the order of the method description! session_id
is dynamically set in the background.
Creating an app:
If you don't like Facades, you can use the helper:
Testing
Run
Credits
License
The MIT License (MIT). Please see License File for more information.