Download the PHP package wulacms/rest without Composer

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

此模块提供RESTFul风格的接口,客户端可以通过HTTP协议进行访问,详见接口文档。

模块提供的触发器

触发器的处理器匀应快速返回,不适合做耗时处理。

1. rest\startCall[int $time, string $format]

开始请求时触发.

参数:

如果要终止后续执行,可以在处理器中直接终止。

2. rest\callApi[string $api, int $time, array $args]

开始调用api时触发.

参数:

如果要终止后续执行,可以在处理器中抛出rest\classes\RestException

3. rest\endApi[string $api, int $time, array $args]

api调用结束时触发.

参数:

4. rest\errApi[string $api, int $time, array $result]

api调用出错时触发.

参数:

5. rest\callError[int $time, array $result]

调用出错时触发

参数:

6. rest\endCall[int $time, array $result]

调用结束时触发

参数:

以上触发器的处理器匀应快速返回,不适合做耗时处理。

配置

conf/rest_config.php是其配置文件:

说明如下:

  1. dev 开发模式,不验签.
  2. domain限定访问域名,接口调用只能通过此域名.
  3. expire会话过期时间.
  4. store 软件包存储路径
  5. zipalign zipalign命令路径(用于压缩apk文件)
  6. download 下载主机的URL.

云端配置

通过勾子rest\classes\form\AppCfgForm::onParseFields向系统注册云控项,具体可以参考FormTable::addField()


All versions of rest with dependencies

PHP Build Version
Package Version
Requires wula/wula-installer Version ^2.0
wula/curlient Version ^1.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 wulacms/rest contains the following files

Loading the files please wait ....