Download the PHP package liuqiandev/thinkphp-facade-generator without Composer

On this page you can find all versions of the php package liuqiandev/thinkphp-facade-generator. 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 thinkphp-facade-generator

thinkphp门面类自动生成工具

一款可以将指定类的动态方法生成thinkphp门面类的命令行工具

版本依赖

如何安装

此外,你还需要在你的application/command中,绑定一下命令

如何使用

在命令行执行以下命令即可

注意事项

这是thinphp内置组件Cache的门面中的一个方法注解,它包含几大部分,如果你需要生成的类中包含以下内容,生成的注解也是和上面的格式一致。

返回类型

目前支持的返回类型包括php内置的ReturnType、对象和self

若未设置,则会默认选择mixed

tips:如果你需要链式操作,如Facade::a()->b(),则你的a()必须返回self

变量类型 Type Hinting

和上面的返回类型差不多,自己去实验一下即可。

文字注释 DocComment

文字注释必须是 @desc 文字注释@description 文字注释

Bug反馈

Issue,改不改看心情。

6.0的等我开始用了再考虑。

使用实例

如下的动态类:

①我们在命令行中执行以下命令:

即可生成application/common/facade/User.php,代码如下:

②或者我们执行以下命令

即可生成application/common/service/facade/User.php,代码如下:

tips 近期准备写一个gitee企业版+企业微信的小项目,感兴趣的可以关注一下


All versions of thinkphp-facade-generator with dependencies

PHP Build Version
Package Version
Requires topthink/framework Version 5.1.*
topthink/think-installer Version ^2.0
php Version >=7.1.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 liuqiandev/thinkphp-facade-generator contains the following files

Loading the files please wait ....