Download the PHP package conperience/lucille without Composer

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

Lucille HTTP Abstraction

Lucille is a lightweight HTTP abstraction layer based on the principles of CQRS. It is designed to quickly create restful services and web services/websites that require dynamic request handling.

Integrate

Type Coverage

Requirements

Minimum requirements:

Basic Concepts

Request processing workflow

The Lucille HTTP Abstraction Framework follows in general the principles of CQRS. The regular processing of a request is done in six steps:

  1. The Request, separated by its HTTP request method (GET, POST, ...) is routed through an explicit RoutingChain to ensure separation from other request types
  2. Each router in the chain must decide to either be responsible to handle the request or have to decline it by forwarding it to the next router in the chain
  3. The matching router in the chain (the router that decides to be responsible to handle the current request) always returns a valid Command or Query object
  4. The Query or Command is executed
  5. The result of the execution is always a Result object
  6. The Result object is finally routed through a ResultRouterChain, which composes the final Response object which is sent to the client

The processing in short, for example for a GetRequest:

  1. GetRequest
  2. GetRoutingChain returns Query
  3. Query is executed and returns a QueryResult object
  4. The result routing chain is invoked and builds the final Response object

Supported HTTP Request Types

Currently the following http request methods are supported

Usage

Full Example using the internal RequestProcessor

The easiest way is to use the provided RequestProcessor. When creating HTTP services you probably want to implement your own request processing mechanism to properly implement your own Logging and Exception handling.

Implementing Routers, Commands and Queries

Example Router (GET Request)

Example Query

URI Matching and Usage Examples

Request Parameter Examples

URI parameter by name

example request uri: /article?id=123

Working with Parameter Collections

Components and Helper

Lucille comes with some handy ready-to-use components to solve some daily problems. Most of these components are simply a lightweight wrapper for standard functionality. So when building complex websites or API projects these components may not fit your extended needs and should be implemented based on your current project scope.

Contributing

Lucille and its Components are open source projects released under the BSD license. You are welcome to join the development team!


All versions of lucille with dependencies

PHP Build Version
Package Version
Requires php Version ^7.2 || ^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 conperience/lucille contains the following files

Loading the files please wait ....