Download the PHP package leslack-hub/laravel-tools without Composer

On this page you can find all versions of the php package leslack-hub/laravel-tools. 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 laravel-tools

laravel-tools

laravel 7.x 工具类

一、ShardingModel 单字段分表

准备:

继承ShardingModel类 设置SHARDING_COLUMN 分表字段 实现SharingTable 方法。按照规则返回指定表名称

使用:

单字段分表无需修改代码 where中必须含有分表字段,会在where条件中指定的值修改指定的表

二、MultiShardingModel 多字段分表

准备:

需要在单字段分表的基础上实现 按照id分表 为分表的主表 如:按照id 4000w 以下 分了2表 为sharding_order_id_0 sharding_order_id_1 冗余表: 按照user_id 500w用户一张冗余表 实现shardingByUserId 方法,返回指定表名 配置SHARDING_COLUMNS 'user_id' => [ // 分表字段 'condition' => ['id'], // 查询规则 'fill' => ['order_id'], // 需要同步的属性 ], 按照merchant_id 分表同理

用法:

查询主表时 同ShardingModel 一样 也可以使用 shardingWhere 方法指定查询表

查询冗余表 如:用户 123 的所有订单

连表查询参考ShardingModel

三、ArrayService 按照指定key 获取多组的值

使用场景

用法:


All versions of laravel-tools with dependencies

PHP Build Version
Package Version
Requires laravel/framework Version 7.x
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 leslack-hub/laravel-tools contains the following files

Loading the files please wait ....