Download the PHP package xincheng/launcher without Composer

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

Launcher - 基于http协议的服务调用

目前支持 基于http协议的服务调用和基于nacos注册的服务调用,由于目前项目非常驻内存运行方式,所以无法将现有项目注册到nacos,仅实现通过名称自动路由nacos注册服务。可实现 php、java之前的互相调用以实现架构的灵活扩展

安装

基础配置

项目编写时作者考虑到工程框架的多样性,故没有直接引入Yii Competent方式作为Yii扩展,而是以composer package方式组织,所以需要在项目进行初始化

配置如下:

在Yii中初始化 仅做参考

缓存配置

通过实现CacheInterface接口实现Launcher缓存

编写第一个请求

请求分为web请求和console请求

web请求

只需要继承实现接口方法即可

console发起请求

继承 即可,其他和Web一致

控制器基类鉴权控制

BaseController

因为后面的所有外部请求经统一网关,所以内部系统之前不必进行鉴权,http头信息中也携带了用户信息

调用


All versions of launcher with dependencies

PHP Build Version
Package Version
Requires guzzlehttp/guzzle Version ^6.5 || ^7.0
ext-json Version *
alibabacloud/mse-20190531 Version ^6.6
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 xincheng/launcher contains the following files

Loading the files please wait ....