Download the PHP package rocboss/batio without Composer

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

Batio

Build Status Branch master Latest Stable Version Latest Unstable Version License

English | 简体中文

A fast and extensible micro-framework for PHP to build RESTful API.

1. Install

Enter http://127.0.0.1:8888 in the browser's address bar. If everything is correct, you can get the following return:

Note: the initial installation needs to edit the related configuration information in the .env file under the project root, and you can also extend the other configuration in the file according to specific requirements.

2. Framework

2.1 Router

In app\config\routes.php, you can customize API routes.

This is an ordinary route. When you visit the home page, you directly map to the api\HomeController controller, execute the following index method, and note that the type of controller method needs to be protected.

2.2 Middlewares

In app\config\app.php, you can customize Middleware for routes, such as authorization authentication, user roles control, etc.

Batio encapsulates a simple authentication model based on JWT, just call the auth() method after the routing of the authentication API.

The example

When you send a request, pass the X-Authorization of JWT value to the server in header.

2.3 Cache

2.4 Log

2.5 Database & Models

In app\models, model and service are stored, model is mainly dealing with database. The official recommended practice is that service calls model, controller calls service, so that the design makes the layering more reasonable, and the functional modules are decoupled to facilitate the business system.

Mainly depended on

Batio uses some excellent third party components, and you can get specific documents from their websites.

Authorization agreement

MIT Agreement


All versions of batio with dependencies

PHP Build Version
Package Version
Requires php Version ^7.0
lcobucci/jwt Version 3.2.*
mikecao/flight Version 1.3.*
catfan/medoo Version 1.5.6
monolog/monolog Version ^1.23
doctrine/cache Version 1.4.*
vlucas/phpdotenv Version 2.0.*
predis/predis Version ^1.1
ruflin/elastica Version ^6.1
elasticsearch/elasticsearch Version ^6.0
aryelgois/medools Version 5.0.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 rocboss/batio contains the following files

Loading the files please wait ....