Download the PHP package buffalokiwi/telephonist without Composer

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

BuffaloKiwi Telephonist

Telephonist is a simple PHP router library, which is a program for mapping http requests to handlers based on various matching criteria.

Table of Contents

  1. [What's in the box?](#interfaces-and-implementations]
  2. Basic Routing

Interfaces and Implementations

Interfaces

  1. Handlers
    1. IArgumentResolver - Using the PHP Reflection API, determine the type, number and values of arguments used when invoking some method
    2. IRouteHandler - Route handlers are responsible for locating some endpoint and returning the content. This can be anything, a file, class, some global function, an RPC, etc.
  2. Route Objects
    1. IHTTPRoute - An object representing a potential destination and the requirements for connection.
    2. IHTTPRouteFactory - A factory optionally used to supply instances of IHTTPRoute to implementations of IHTTPRouter
  3. Route Options
    1. IHTTPRouteOption - Used to extend the conditions required for route matching. This can be anything, such as the HTTP Method, accept headers, authentication tokens, etc.
    2. IHTTPRouteOptions - A collection of IHTTPRouteOption
  4. Request for Routing
    1. IHTTPRouteRequest - Represents a HTTP Request message and exposes the relevant parts to the router
  5. Router
    1. IHTTPRouter - The program responsible for determining which route to invoke based on some client request

Implementations

  1. Handlers ArgumentResolver ClassRouteHandler FunctionRouteHandler

  2. Route Objects ArrayRouteFactory HTTPRoute ClassHTTPRoute DefaultHTTPRoute DefaultHTTPRouteFactory NestedArrayRouteFactory HTTPRouteFactoryGroup

  3. Route Options DefaultHTTPRouteOptions HTTPRouteOption MethodRouteOption XMLHTTPRequestRouteOption

  4. Request for Routing DefaultHTTPRouteRequest

  5. Router BasicRouter DefaultHTTPRouter

The most basic router possible

http://localhost displays: "This is the home page"

Adding arguments

Arguments can be added by using standard capture groups

http://localhost/1 displays: "Found digit 1"

We can used named arguments by using named capture groups like this

If named arguments are used, then ALL arguments must be named. Mixing of positional arguments with named arguments is not allowed.

In the following example, naming $id anything other than $id will throw an exception.


All versions of telephonist with dependencies

PHP Build Version
Package Version
Requires php Version ~8.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 buffalokiwi/telephonist contains the following files

Loading the files please wait ...