Download the PHP package skansing/escapology without Composer

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

Escapology Scrutinizer Code Quality Code Coverage Build Status

A front controller to put in front of your impossible-to-ever-refactor-into-clean-code codebase/framework.

The primary intention is to slowly and safely migrate away from a legacy codebase and into a new modern approach.

Requirements

Tested against PHP 5.4, 5.5, 5.6, 7 and hhvm.

When to use

Use when your application is a terrible mess and your new go-to codebase/framework is fully loaded when it hits the front controller. An example of this could be migrating away from CodeIgniter/Yii to Laravel 5. At the time your clients hit Laravels front controller (router), Laravel already booted up a massive application. The performence hit of booting up the entire framework work only to route it to the old application is too much. Instead put up this library to handle the routing between old and new application until you can remove both this libary and the old application.

Suggested alternatives

Your new clean code dispatches to the old application if the route is not found, because it is fully decoupled and super fast from day 1.

Breaking free of your chains (framework/vendor lock in)

See the examples folder for examples.

Suggested Path of migration

  1. Stop building new functionality in your old codebase.
  2. Setup a new codebase.
  3. Setup the Escapology front controller, feed it the front controller of your old and new code base.
  4. Feed the new front controller either a static route file or your new codebases. (take a look at the examples)
  5. Routes found in the new code base will be sent to the new code base, any not found will be sent to the old codebase.
  6. Migrate the old codebase bit by bit to the new one.
  7. When all of the old codebase is gone, remove Escapology and replace it with the real front controller.

The Regex Router

At the moment there is only one kind of router/dispatcher to use, the regex one.

Routes are declared in the following format

Regular use

As described the examples file would look something like this

Remember to clear the cache file when new routes are set. If you only have a few routes there isnt much gain to using a cached file, but around the 100-1000 routes the benefits of not having to parse the route files are obvious.

If you want to use it uncached, simply only pass a dispatcher.

Credits

This package regex routing is inspired by Nikita Popov's FastRoute library


All versions of escapology with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.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 skansing/escapology contains the following files

Loading the files please wait ....