Download the PHP package ygxsj/yg_center without Composer

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

yg

配置数据库

判断用户是否存在

YgUser::checkUserExist($account); //获取用户资料

$from 数据来源,为空则调用此账户下所有用户数据

YgUser::getUserInfo($account,$from);

获取用户数据 默认拉取眼罩系统数据

YgUser::getUserInfoByAccount($account, $from = 'YG_YGXSj');

获取用户最高等级

YgUser::getUserLevel($account);

增加数据库配置中心

/config/database.php 文件目录

'YG_CENTER' => [ // 数据库类型 'type' => env('database.type', 'mysql'), // 服务器地址 'hostname' => env('database.hostname', '127.0.0.1'), // 数据库名 'database' => env('database.database', ''), // 用户名 'username' => env('database.username', 'root'), // 密码 'password' => env('database.password', ''), // 端口 'hostport' => env('database.hostport', '3306'), // 数据库连接参数 'params' => [], // 数据库编码默认采用utf8 'charset' => env('database.charset', 'utf8'), // 数据库表前缀 'prefix' => env('database.prefix', ''),

        // 数据库部署方式:0 集中式(单一服务器),1 分布式(主从服务器)
        'deploy'          => 0,
        // 数据库读写是否分离 主从式有效
        'rw_separate'     => false,
        // 读写分离后 主服务器数量
        'master_num'      => 1,
        // 指定从服务器序号
        'slave_no'        => '',
        // 是否严格检查字段是否存在
        'fields_strict'   => true,
        // 是否需要断线重连
        'break_reconnect' => false,
        // 监听SQL
        'trigger_sql'     => env('app_debug', true),
        // 开启字段缓存
        'fields_cache'    => false,
    ],

env 数据文件增加配置

[DATABASE]

TYPE = mysql

HOSTNAME = xxxx

DATABASE = yg_center

USERNAME = xxxx

PASSWORD = xxxx

HOSTPORT = 3306

PREFIX = yg_

CHARSET = utf8

DEBUG = true


All versions of yg_center with dependencies

PHP Build Version
Package Version
Requires topthink/think-migration Version ^3.0
ext-curl Version *
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 ygxsj/yg_center contains the following files

Loading the files please wait ....