Download the PHP package hlw2326/think-plugin-mp-shared without Composer

On this page you can find all versions of the php package hlw2326/think-plugin-mp-shared. 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 think-plugin-mp-shared

hlw2326/think-plugin-mp-shared

ThinkAdmin 小程序插件共享组件,提供用户解析器和通用服务,所有小程序相关插件统一依赖此包。

作者微信:hlw2326


组件内容

文件 说明
src/contract/UserResolver.php 用户解析器接口
src/service/UserResolverService.php 用户解析器服务(静态单例)

使用方式

各插件依赖此包

主应用注册解析器

在主应用初始化时一次性注册所有插件的用户解析器:

然后在 app/mini/Service.php 中引用或直接在各插件的 Service 中完成注册。

各插件 API 基类引用


版本历史


All versions of think-plugin-mp-shared with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
ext-json Version *
topthink/framework Version ^6.0|^8.0
zoujingli/think-library Version ^6.1
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 hlw2326/think-plugin-mp-shared contains the following files

Loading the files please wait ...