Download the PHP package griffbrad/gasp without Composer

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

Gasp

A PHP task runner with an API similar to Gulp's.

Gasp makes it easy to create build scripts you can share with other devs on your team. You configure Gasp with normal PHP code, rather than being stuck with an XML or JSON syntax that manages to be both complex and limiting. You can easily compose multiple Gasp tasks into a single command or add your own with a simple callback.

Installation

You'll first install Gasp via composer. Add it to your composer.json's require-dev section:

{
    "require-dev": {
        "griffbrad/gasp": "1.*"
    }
}

You'll then be able to run Gasp from your vendor directory:

./vendor/bin/gasp

Getting Started

You'll need a gaspfile in your project folder. If you installed Gasp via Composer, you'd place your gaspfile in that same location as your vendor folder. Here's a simple gaspfile example:

<?php

$gasp->sniff()
    ->setPhpcs('./vendor/bin/phpcs')
    ->setStandard('PSR2')
    ->addPath('admin')
    ->addPath('library/Monitoring');

$gasp->lint()
    ->setPhp('/usr/bin/php')
    ->addPath('admin')
    ->addPath('library/Monitoring');

$gasp->task('qa', ['sniff', 'lint']);

Notice the custom "qa" task that composes the built-in "sniff" and "lint" tasks. You can also define custom tasks using a closure, rather than an array of task names.

To call any of the tasks defined in your gulpfile, just pass the task name as the first argument to gasp:

./vendor/bin/gasp qa

We plan to add many more tasks over time, but you can use custom tasks or the built-in exec tasks to fill in the gaps in the meantime.

Defining custom tasks with callbacks

When implementing a custom task using a callback, you need to return a result object so Gasp knows how things went:

<?php

$gasp->task('custom', function () use ($gasp) {
    $itWorked = call_your_custom_functions_to_do_important_work();
    $result   = $gasp->result();

    if ($itWorked) {
        $result
            ->setStatus('success')
            ->setMessage('Hey!  It worked!');
    } else {
        $result
            ->setStatus('failure')
            ->setMessage('Hm.  Try again.');
    }

    return $result;
});

Using exec to run other programs

The built-in exec task lets you run other programs and will automatically generate a result based upon the exit status of the program:

<?php

$gasp->task('date', function () use ($gasp) {
    return $gasp->exec('date');
});

All versions of gasp with dependencies

PHP Build Version
Package Version
Requires squizlabs/php_codesniffer Version 2.*
php Version >=5.4.0
phpdocumentor/phpdocumentor Version 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 griffbrad/gasp contains the following files

Loading the files please wait ....