Download the PHP package inani/chibi without Composer

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

Chibi

Chibi is a mini PHP framework to work on small projects, containing the following elements.

Routing

With Chibi its really easy to make your routes

Route to Controller

Route to closure

A Response & Request instances are allways passed for you out of the box you just need to type hint it

Controllers

Every Controller used in the app should extends the Chibi\Controller\Controller Controller.

Views

You can pass data from controllers to the view via the view method

The views are in the View folder with a Chibi.php extenstion.

A simple templete engin is provided.

Hurdles

Do you want to protect some routes? To be able to access to it only if some conditions are verified, sure you can do! Just use Hurdles for your routes

Create a Hurdle

A hurdle Object should implement the Wall Interface

Use the Hurdle in the route as follow

Apply a Hurdle for all routes

Well its easy, Just fill the register file in the App\Hurdles Folder

CSRF Token

A CSRFTokenable Hurdle will be run at each POST request to protect you from Cross-Site Request Forgery attacks, you only need to include the @csrf_field in the form, otherwise an Exception will be thrown.

Katana ORM

The Chibi framework is using its simple Katana ORM, simple and easy to use, you don't have to make a lot of effor to handle your Models. for the time being it supports:

Authentication system out of the box

With Chibi framework you will do practicaly nothing to build a system of authentication.

Set up the Model

Your Katana model should extend the Authenticated class where you should set up the name of the guard.

Connexion

You can use the following methods:

Hurdles

Chibi framework ships with some useful hurdles that will help you to protect your routes depending on the situation

GUEST

Auth

You can pass the name of the guard as an option to check against it


All versions of chibi with dependencies

PHP Build Version
Package Version
Requires filp/whoops Version ^2.1
vlucas/phpdotenv Version ~1.0
nesbot/carbon Version ^1.26.3
symfony/var-dumper Version 4.*
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 inani/chibi contains the following files

Loading the files please wait ....