Download the PHP package openpmc/microservice without Composer

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

CGLand

运行环境要求

快速搭建localhost环境:

docker-compose up

docker常用命令

数据库

创建数据库

php think make:db pmc

删除数据库

php think rm:db pmc

创建迁移文件

php think migrate:create Users

回滚最近一次迁移

php think migrate:rollback

回滚所有迁移文件

php think migrate:rollback -t 0

从当前配置正确的数据库创建迁移文件

php think migrate:from-mysql

运行迁移文件

php think migrate:run

创建数据填充

php think seed:create PersonnelFile 

执行数据填充

php think seed:run
php think seed:run -s Users

数据重新填充(清空数据表再次填充)

php think seed:reset

控制器

新建资源控制器

 php think make:controller auth/AuthRule 

新建API控制器(常用,重要!)

 php think make:controller --api auth/AuthRule 

新建控制器

 php think make:controller auth/AuthRule --plain

新建 验证器类

 php think make:validate  index/User

模型

新建模型(模型尽量放在common模块)

 php think make:model common/School

中间件

新建中间件

 php think make:middleware Auth  

门面

新建门面

 php think make:facade Excel=\\excel\\Excel

删除门面

 php think rm:facade Excel

缓存

生成路由映射缓存

php think optimize:route

默认生成应用的配置缓存文件,调用后会在runtime目录下面生成init.php文件,生成配置缓存文件后,应用目录下面的config.phpcommon.php以及tags.php不会被加载,被runtime/init.php取代。

php think optimize:config  

生成类库映射文件

php think optimize:autoload 

清除缓存

不带任何参数调用clear命令的话,会清除runtime目录下文件

 php think clear  

清除数据缓存目录

 php think clear --cache 

清除路由缓存

 php think clear --route

清除日志目录

 php think clear --log   

快速生成模块

可以用来自动生成需要的模块及目录结构和文件等

 php think build --module test

查看thinkphp版本

php think version

国际化相关

语言包位于
application/lang/en.php
调用语言包
lang('Undefined variable');

变量/类/函数命名

codelf

https://unbug.github.io/codelf/

All versions of microservice with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0.0
topthink/framework Version 5.1.35
phpoffice/phpspreadsheet Version ^1.6
topthink/think-captcha Version ^2.0
topthink/think-image Version ^1.0
topthink/think-helper Version ^1.0
topthink/think-migration Version ^2.0
topthink/think-mongo Version ^2.0
topthink/think-queue Version ^2.0
topthink/think-testing Version ^2.0.1
topthink/think-swoole Version ^2.0.16
cgland/thinkphp-auth Version ^2.0.0
alibabacloud/client Version ^1.0
phpmailer/phpmailer Version ^6.0
cgland/thinkphp-qrcode Version ^1.0
ruflin/elastica Version ^6.1
ext-json Version *
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 openpmc/microservice contains the following files

Loading the files please wait ....