Download the PHP package bit55/litero without Composer

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

Litero

Extra light router and dispatcher for small web applications. Small footprint and no overhead.

Router class in this package maps HTTP-requests by URL pattern to callbacks.

Note: It's component not support PSR-7 HTTP Message Interface out of the box.

Installing

Create project based on Litero in current directory:

And add your application code to autoloading section in composer.json.

Or include Litero in your existing project:

Or download this repository and include file Router.php in your project.

Your webserver must point to the index.php file for any URI entered. See .htaccess for Apache and example.nginx.conf for Nginx configuration example.

Usage

Create Instance of Router class.

Add routing rules. Routes may contents exact or wildcard rules.

Wildcards example:

Route handler may be any callable (function name, closure) or string with controller class name and action method. Router instantiate controller and execute action method automatically.

Wildcard parameters will be passed as function params in handler.

Note if you using Composer, add your controller classes to autoloading.

Add single rule with Closure handler:

Or add array of routes.

Start route processing.

Usage example code see in index.php file.


All versions of litero with dependencies

PHP Build Version
Package Version
Requires php Version ^7.0 || ^5.6
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 bit55/litero contains the following files

Loading the files please wait ....