Download the PHP package mostanily/diy-api without Composer

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

diyApi

个人diy简易api框架

说明

思路来自laravel社区文章 PHP DIY 系列 ,做了一些改动。 此包仅供学习使用

目录说明

配置

配置信息全部放在了config目录中,以目录扫描(easyswoole中的File类,具体为:vendor\easyswoole\utility\src\File.php)方式进行统一处理;

路由

支持以下类似路由设置,对于参数写在链接里的路由,还请放在 dynamic_route这个数组里;具体的配置文件均在 config这个文件夹中。 注:框架里面 app\Https\Controller文件夹中的测试Controller可以全部删除

支持依赖注入

依赖注入核心类文件来自https://github.com/wazsmwazsm/IOCContainer/tree/master/src/IOC/Container.php ; 使用例子如下:

自己做了个简单的redis单例,支持读写分离,如果不需要,可以自己下载redis包 composer require predis/predis 。 mysql没有写,需要的话可以自己写或者参考这篇文章 在Laravel外独立使用Eloquent


All versions of diy-api with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1.0
psr/container Version ^1.0@dev
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 mostanily/diy-api contains the following files

Loading the files please wait ....