2017 © Pedro Peláez
 

composer-plugin composer-backslasher

Composer plugin that speeds up your application by adding backslashes to all PHP internal functions and constants.

image

dg/composer-backslasher

Composer plugin that speeds up your application by adding backslashes to all PHP internal functions and constants.

  • Friday, June 22, 2018
  • by david@grudl.com
  • Repository
  • 5 Watchers
  • 19 Stars
  • 491 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 4 Versions
  • 555 % Grown

The README.md

Composer Backslasher

Downloads this Month Build Status, (*1)

Composer plugin that speeds up your application by adding backslashes to all PHP internal functions and constants in /vendor. Does not modify files of your application., (*2)

Installation

composer require dg/composer-backslasher

Then simply use composer update., (*3)

How it works?

It simply turns this code:, (*4)

namespace A;

if (preg_match('/(foo)(bar)(baz)/', 'foobarbaz', $matches, PREG_OFFSET_CAPTURE)) {
    // ...
}

into this code:, (*5)

namespace A;

if (\preg_match('/(foo)(bar)(baz)/', 'foobarbaz', $matches, \PREG_OFFSET_CAPTURE)) {
    // ...
}

to avoid double lookup for global functions and constants., (*6)

Configuration

If you want to ignore certain functions or constants, specify them in the configuration. Simply add a extra > backslasher-ignore section to composer.json file:, (*7)

{
    "extra": {
        "backslasher-ignore": [
            "GuzzleHttp\\Promise\\each"
        ]
    }
}

Support Project

Do you like Composer Backslasher? Are you looking forward to the new features?, (*8)

Donate, (*9)

The Versions

22/06 2018

dev-master

9999999-dev

Composer plugin that speeds up your application by adding backslashes to all PHP internal functions and constants.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

composer

26/04 2018

v0.3

0.3.0.0

Composer plugin that speeds up your application by adding backslashes to all PHP internal functions and constants.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.4.0
  • composer-plugin-api ^1.0

 

The Development Requires

composer

30/03 2018

v0.2

0.2.0.0

Composer plugin that speeds up your application by adding backslashes to all PHP internal functions and constants.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.4.0
  • composer-plugin-api ^1.0

 

The Development Requires

composer

29/03 2018

v0.1

0.1.0.0

Composer plugin that speeds up your application by adding backslashes to all PHP internal functions and constants.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.4.0
  • composer-plugin-api ^1.0

 

The Development Requires

composer