Download the PHP package su-sws/erus without Composer

On this page you can find all versions of the php package su-sws/erus. 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 erus

ERUS

External Repository Update Status.

For connecting with external repository services such as github or bitbucket in order to obtain update status information for custom work.

INSTALLATION AND CONFIGURATION

By default ERUS will pick up any module that uses the project status url option in the .info file of the module or feature.

project status url = 'http://www.example.com'

ERUS module will attempt to gather information from the update status url in order to check the external service. ERUS comes with a built in github.com plugin. All you would need to add to your features that are stored on github is the path to the github project page. EG: for ERUS

project status url = 'https://github.com/SU-SWS/erus'

You may also add specific configuration settings for each of your modules and features no matter where they are hosted. Add the following to the .info file of the project that is hosted with an external repository service.

erus[plugin] = plugin_name
erus[account] = remote-account-name
erus[project] = *optional_project_name*

eg: for https://github.com/SU-SWS/stanford_person

erus[plugin] = github.com
erus[account] = SU-SWS
erus[project] = stanford_person

Plugins

GitHub
A plugin to connect with GitHub's release functionalty. See plugin documentation for more information.

API

see erus.api.php

/**
* Define your own plugins
* /
hook_erus_plugin_info()

/**
* Alter existing plugin information
*/
hook_erus_plugin_info_alter()

Example Plugin

/**
* Example Erus Plugin
*/
class erusExample extends erusPlugin {

  /**
   * - Optional Method -
   *
   * Creates a configuration form at:
   * admin/config/administration/erus/[-plugin_name-]
   *
   * A default submit handler is provided that saves all the form values
   * into the variables table for you at variable_get('erus_[plugin_name]');
   *
   * @return [array] [config form]
   */
  public function get_configuration_form() {
    $form = array();

    // Your form items here.

    return $form;
  }

  /**
   *  - Required Method -
   *
   * The meat of your plugin goes in here. It is passed in update data for a
   * module that has been validated to use this plugin. Add your logic here.
   *
   * @param  [array] $data Update Data
   * @return [array]
   */
  public function process($data) {

    // Do your stuff here.
    // ...

    // A guzzle client is available to you.
    $client = $this->get_client();

    // Get the configuration form settings

    return $data;
  }

}

Drush

WARNING This module will break your 'drush up' command unless all used plugins provide a valid md5 checksum and the download file unpacks with the exact same name as the module.

If your 'drush up' fails to validate md5 checksums or replaces module directories with invalid names you can use the included package-handler to remedy those ailments.

eg: drush up --package-handler=erus_wget

By providing the --package-handler option you will be able to continue to use drush up.

Also included in this module is a wrapper for the above. Simply use the drush eup command to accomplish the same thing.

eg: drush eup

TODO


All versions of erus with dependencies

PHP Build Version
Package Version
Requires composer/installers Version ^1.2
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 su-sws/erus contains the following files

Loading the files please wait ....