Download the PHP package skyfuns/generalpack without Composer

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

Generalpack扩展包

安装

一: 在您的项目composer中增加如下信息,如没有composer文件,则在根目录中通过命令行 composer init生成composer文件。 

Gitlab扩展包库

1.在composer.json中增加如下扩展包库

"repositories": [
    {
        "type": "git",
        "url": "https://code.cdqidian.cn/liangyl/generalpack.git",
        "reference":"master"
    }
]

2.增加扩展包依赖:

"require": {
    "generalpack": "master"
}

3.使用 composer 更新扩展包

composer update

二:在命令行中发布扩展包配置

/**发布JWT客户端配置***/
php artisan vendor:publish --provider="Generalpack\Pack\Client\Jwt\JwtClientServiceProvider"

/**发布队列引擎配置***/
php artisan vendor:publish --provider="Generalpack\Pack\Queueengine\Activemq\ActivemqServiceProvider"

/**发布服务管理配置***/
php artisan vendor:publish --provider="Generalpack\Pack\Servicediscover\Serviceengine\ServiceengineServiceProvider"

服务发现代码调用实例

    namespace App\Http\Controllers;
    use Illuminate\Http\Request;
    use Serviceengine;

    class TestController extends Controller {
        public function test(Request $request) {

            $url = Serviceengine::discover('onlyuser');
            var_dump($url);
            die();

        }
    }

服务发现命令调用实例

服务发现 --- php artisan service:discover onlyuser
需传递服务名发现服务

服务注册 --- php artisan service:register onlyuser http:192.168.1.107:8000
需传递服务名和服务地址注册服务

服务注销 --- php artisan service:unregister onlyuser
需传递服务名来注销服务

All versions of generalpack with dependencies

PHP Build Version
Package Version
Requires fusesource/stomp-php Version 2.0.*
sensiolabs/consul-php-sdk Version ^3.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 skyfuns/generalpack contains the following files

Loading the files please wait ...