Download the PHP package digipolisgent/robo-digipolis-general without Composer

On this page you can find all versions of the php package digipolisgent/robo-digipolis-general. 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 robo-digipolis-general

Robo Digipolis General

General Digipolis tasks for Robo Task Runner

Latest Stable Version Latest Unstable Version Total Downloads License

Build Status Maintainability Test Coverage PHP 7 ready

Tasks in this package

DetermineProjectRoot

Determines the root folder of the project by looking for certain files in the given folder. By default it looks for a properties.yml or a composer.json file. Usually this task is ran before running an other task in the same command so the config value can be passed to that task.

DetermineWebRoot

Determines the web root folder of the project by looking for certain files in the given folder. By default it looks for a index.php, index.html, index.htm, home.php, home.html or a home.htm file. Usually this task is ran before running an other task in the same command so the config value can be passed to that task.

ReadProperties

Reads values from yaml files (default.properties.yml and properties.yml) and stores them in config. Values from default.properties.yml will be overridden if they exist in a properties.yml. If a valid path is set for digipolis.root.web in config, and a properties.yml file exists in that path, those values will have top priority. Property files (both default.properties.yml and properties.yml) can define a _priority key at the root of the yaml. Higher priorities (lower number) take precedence over lower priorities (higher number).

Using these tasks in a command

If you want to use these tasks in a command, you can use the \DigipolisGent\Robo\Task\General\Common\DigipolisPropertiesAware trait and implement the \DigipolisGent\Robo\Task\General\Common\DigipolisPropertiesAwareInterface interface. This will expose a readProperties method to which you can pass the paths to the project root, the web root and the vendor folder. If the tasks to determine the project and web root are available on the class using the trait, and no project or web root are given as a parameter to the readProperties method, these tasks will be used to determine the paths. They both default to the current working directory. The vendor folder defaults to the vendor folder in the web root. Your RoboFile.php might look something like this:


class RoboFile extends \Robo\Tasks implements \DigipolisGent\Robo\Task\General\Common\DigipolisPropertiesAwareInterface
{
    use \DigipolisGent\Robo\Task\General\Common\DigipolisPropertiesAware;
    use \DigipolisGent\Robo\Task\General\loadTasks;

    public function myCommand(
        $arg1,
        $arg2,
        $opts = [
            'root|r' => null,
            'webroot|wr' => null,
            'vendor-folder|vf' => null,
        ]
    )
    {
        $this->readProperties(
            $opts['root'],
            $opts['webroot'],
            $opts['vendor-folder']
        );
        // All properties are stored in config now, so execute the command.
        $this->doCommand();
    }
}

All versions of robo-digipolis-general with dependencies

PHP Build Version
Package Version
Requires consolidation/robo Version ^3.0 || ^4.0
grasmash/yaml-expander Version ^3
ckr/arraymerger Version ^3.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 digipolisgent/robo-digipolis-general contains the following files

Loading the files please wait ....