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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

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.


All versions of laravel-webfaction with dependencies

PHP Build Version
Package Version
Requires phpxmlrpc/phpxmlrpc Version ^4.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package subdesign/laravel-webfaction contains the following files

Loading the files please wait ....