Download the PHP package gouuse/core without Composer

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

gouuse_core

使用方法:

1、第一步在composer文件中引入该包

"gouuse/core":"1.1.*"

2、在自己项目框架中,将controller继承为

use GouuseCore\Controllers\Controller

3、将model继承为

use GouuseCore\Models\BaseModel;

4、将lib继承为

use GouuseCore\Libraries\Lib; 如果将自己library放入到公共包并且希望使用$this->方式调用,需要将公共包的BaseGouuse.php中的33行加上自己的library。公共类可以自定加入到lib文件夹下。 注意:自己模块的私有类库请放在自己项目的library下

5、使用helper时 使用

GouuseCore\Helpers\ArrayHelper

6、使用数据库日志、返回数据使用数组

在app.php中注册EventServiceProvider $app->register(GouuseCore\Providers\EventServiceProvider::class);

7、swoole服务管理 端口信息配置在.env文件中 vendor/bin/Swoole start | stop | reload | restart | quit 注意:Windows环境需要使用php -f vendor/gouuse/core/src/bin/Swoole start | stop | reload | restart | quit

8、自己开发的服务如果要对其他应用提供内部调用,请在Rpcs文件夹下编写自己的rpc客户端,参照memberrpc.php。使用rpc服务需要在网关层面定义要负载、API规则协议,rpc会自动拉取网关路由规则

9、阿里消息订阅服务 在.env中配置: QUEUE_PREFIX=dev- QUEUE_MNS_ACCESS_KEY= QUEUE_MNS_SECRET_KEY= QUEUE_MNS_ENDPOINT=http://xxxxxxxxxxxxxxxxx.mns.cn-beijing.aliyuncs.com/ 发送消息到消息中心: $messge_data = [消息体组合数组]; $this->sendMessageCenter->sendMessageCenter($messge_data);

发送通用订阅消息: $messge_data = ['topic_name' => 'user-message-center', 'message_body' => json_encode($messge_data)]; $this->sendMessageCenter->sendMessageTopic($messge_data);

获取订阅消息: $this->MessageCenterLib->getMessageData($request);

10、通用日志方法 成功日志:$this->LogLib->info(['param' => '提交数据', 'result' => '返回数据', 'startTime' => '开始时间戳']); 错语日志:$this->LogLib->log_err(['param' => '提交数据', 'result' => '返回数据', 'startTime' => '开始时间戳']);

11、CodeTool工具是自动将CodeLib.php文件的注释自动转换成数组配置文件 执行方式vendor/bin/CodeTool ,生成的文件error_code.inc.php在resources/options/zh_cn/目录下 注意:Windows开发环境下需要使用php -f vendor/gouuse/core/src/bin/CodeTool error_c ode.inc.php执行

12、加密解密 使用$this->EncryptLib->encrypt() / $this->EncryptLib->decrypt()

13、生成文档 php vendor/zircote/swagger-php/bin/swagger app/Http/Controllers -o public/swagger-docs

14、rpc调用远程方法


All versions of core with dependencies

PHP Build Version
Package Version
Requires ixudra/curl Version 6.*
zircote/swagger-php Version ^2.0
illuminate/redis Version ^5.4
predis/predis Version 1.0.*
laravel/lumen-framework Version >=5.4
php Version >=7
sayid/aliyun-mns-php-sdk Version dev-master
elasticsearch/elasticsearch Version ~5.0
phpoffice/phpspreadsheet Version ^1.0@beta
mk-j/php_xlsxwriter Version ^0.32.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 gouuse/core contains the following files

Loading the files please wait ....