All Projects → dg → composer-backslasher

dg / composer-backslasher

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

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to composer-backslasher

Composer Dropin Installer
Use composer for installing dropin dependencies
Stars: ✭ 30 (-23.08%)
Mutual labels:  composer-plugin
Composer Custom Directory Installer
A composer plugin, to install differenty types of composer packages in custom directories outside the default composer default installation path which is in the vendor folder.
Stars: ✭ 117 (+200%)
Mutual labels:  composer-plugin
composer-asset-compiler
Composer plugin that installs dependencies and compiles assets based on configuration.
Stars: ✭ 19 (-51.28%)
Mutual labels:  composer-plugin
Composer Notifier
💬 Display desktop notification after Composer install / update
Stars: ✭ 42 (+7.69%)
Mutual labels:  composer-plugin
Beetbox
Pre-provisioned L*MP stack
Stars: ✭ 94 (+141.03%)
Mutual labels:  composer-plugin
Private Composer Installer
Composer install helper outsourcing sensitive keys from the package URL into environment variables
Stars: ✭ 168 (+330.77%)
Mutual labels:  composer-plugin
Drupal Component Scaffold
Scaffolding Composer plugin for Drupal modules and themes.
Stars: ✭ 11 (-71.79%)
Mutual labels:  composer-plugin
composer-plugin-qa
Comprehensive Plugin for composer to execute PHP Quality assurance Tools
Stars: ✭ 25 (-35.9%)
Mutual labels:  composer-plugin
Composer Cleaner
Victor The Cleaner: removes unnecessary files from vendor directory
Stars: ✭ 114 (+192.31%)
Mutual labels:  composer-plugin
preserve-paths
A composer plugin for keeping specified files and directories when installing/updating new composer packages. Can be used to supported nested packages.
Stars: ✭ 27 (-30.77%)
Mutual labels:  composer-plugin
Studio
A workbench for developing Composer packages.
Stars: ✭ 1,021 (+2517.95%)
Mutual labels:  composer-plugin
Skrub
A package to remove junk from Composer installations and trim build sizes.
Stars: ✭ 91 (+133.33%)
Mutual labels:  composer-plugin
Composer Preload
Preload your sweet sweet code to opcache with a composer command, making your code faster to run.
Stars: ✭ 173 (+343.59%)
Mutual labels:  composer-plugin
Store Plugin Installer
Install store.shopware.com Plugins automatically in your Shopware Composer Setup
Stars: ✭ 37 (-5.13%)
Mutual labels:  composer-plugin
logSys
PHP Secure, Advanced Login System
Stars: ✭ 80 (+105.13%)
Mutual labels:  composer-plugin
Composer Assets Plugin
Composer plugin for copying of frontend assets into public directory.
Stars: ✭ 20 (-48.72%)
Mutual labels:  composer-plugin
Foxy
A fast, reliable, and secure NPM/Yarn bridge for Composer
Stars: ✭ 137 (+251.28%)
Mutual labels:  composer-plugin
package-wizard
Package Wizard is a library for creating a new packages using CLI tool.
Stars: ✭ 61 (+56.41%)
Mutual labels:  composer-plugin
composer-packages
Composer Packages is a Composer plugin for getting information about installed packages in your project.
Stars: ✭ 32 (-17.95%)
Mutual labels:  composer-plugin
Composer Patches
Applies a patch from a local or remote file to any package that is part of a given composer project. Patches can be defined both on project and on package level. Optional support for patch versioning, sequencing, custom patch applier configuration and composer command for testing/troubleshooting patches.
Stars: ✭ 196 (+402.56%)
Mutual labels:  composer-plugin

Composer Backslasher

Downloads this Month Build Status

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.

Installation

composer require dg/composer-backslasher

Then simply use composer update.

How it works?

It simply turns this code:

namespace A;

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

into this code:

namespace A;

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

to avoid double lookup for global functions and constants.

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:

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

Support Project

Do you like Composer Backslasher? Are you looking forward to the new features?

Donate

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].