Download the PHP package uuf6429/elder-brother without Composer

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

Elder Brother

Build Status Minimum PHP Version License Coverage Scrutinizer Code Quality Packagist

Elder Brother automatically regulates contributions before reaching your project.

Using events such as Git-hooks, one can ease development in various ways, such as:

This tools makes it easy to set up these tasks, as well as putting such policies under version control.

Table Of Contents

Installation

  1. Add the library to your project with Composer:

    Notes:

    • in this way, Elder Brother will only be installed during development (Composer should be run with --no-dev in production).
    • scriptsdev package will make installation work during development and not break during production.
    • you may still have to install additional packages (detailed below) to use some particular actions.
  2. Add the following entry to your composer.json:

  3. Create a .brother.php config file (as described below) and add .brother.local.php to your .gitignore file (this allows for user-level config).

Usage

Elder Brother by default reads configuration from two files, .brother.php and .brother.local.php (which should be ignored by your VCS).

A typical configuration file will be structured like this:

Basically, the configuration is an array of actions grouped by event. In the above example, PhpLinter and PhpCsFixer actions will check all files (GitChangeSet::getAddedCopiedModified()) in the commit before it takes place (Event\Git::PRE_COMMIT). It is recommended that you give each action a defined numeric index, so that they can be easily overridden by user config. Note that no matter how the items look like in the array, action execution starts from the smallest index.

Available Actions

Execute Custom Code (ExecuteCode)

Executes the passed callback, function or static method.

Execute External Program (ExecuteProgram)

Executes an external program.

Disallow Files (ForbiddenFiles)

Will stop process if $files is not empty, for the reason specified in $reason.

PHP Code Style Fixer (PhpCsFixer)

Runs all the provided files through PHP-CS-Fixer, fixing any code style issues.

PHP Code Style Fixer (PhpCsFixerOld)

Deprecated: Use PhpCsFixer class instead.

Runs all the provided files through PHP-CS-Fixer, fixing any code style issues.

PHP Syntax Check (PhpLinter)

Ensures that all the provided files are valid PHP files, terminating the process with an error and non-zero exit code, if not.

Show Warning For Files (RiskyFiles)

Will show a warning if $files is not empty, for the reason specified in $reason.

FAQ

What is the main motivation behind this tool?

Projects with a considerable amount of collaborators usually ends up with policies of what kind of patches are accepted. This is usually enforced through code-reviews (which can be very time-consuming), custom tools (difficult to set up) or shell scripts in pre-commit hooks (difficult to maintain and not really scalable).

The main idea here is to have a framework on the client side to enforce project contribution policies even before the source code reaches the main repository - saving developer time and maintenance costs.

Why in PHP?

Why not? There are two alternatives: shell scripts and other languages. Shell scripts have many disadvantages for this use - they're not cross-platform compatible, nor easily understandable. Other languages might be suitable, but it means requiring your collaborators to know them. We're basically using what's already available in the ecosystem.


All versions of elder-brother with dependencies

PHP Build Version
Package Version
Requires php Version ^5.5.0 || ^7.0
psr/log Version ^1.0
symfony/console Version ^3.1
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 uuf6429/elder-brother contains the following files

Loading the files please wait ....