Download the PHP package lyxxxh/lartree without Composer

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

介绍

高效生成系统树 用于无限级分类

例如:楼中楼评论 获取下级分类等

只会产生一个sql并且速度非常快

支持

仅支持adjacency结构 例如(classify表id(儿子) pid(父亲) )

测试 (只统计生成树使用的时间)

测试

数据量(条) 时间(s) 内存(m)
756 0.022 0.83
5256 0.075 2.84
11256 0.16 5.67
48843 0.883 24.63
108843 1.80 52.42

傻瓜式一次次查询

傻瓜式

查询到1 where pid = 1 
查询到2 where pid = 2 
查询到3 where pid = 3
数据量(条) 时间(s) 内存(m)
146 0.72 2.81
646 3.01 10.84
2646 13.34 42.91

安装

  1. composer require lyxxxh/lartree

查看例子(不使用也可以)

例子

1.在app/config.php的providers添加
  Xxh\LarTree\LarTreeProvider::class
2. php artisan vendor:publish --provider="Xxh\LarTree\LarTreeProvider::class"
3. 导入user 下面附数据库 (我测试的数据库)
  1. 打开/lar_tree 600条sql 4w条sql 10w条sql

生成树使用方法(可参考vendor/lyxxxh/lartree/src/LarController.php)

自定义

vendor/lyxxxh/lartree/src/LarTree.php使用trait

根据需求重写里面的所有方法(看源码)

例如获取文章的评论 你完全可以复制代码 然后重写setDataContainer($data)


All versions of lartree with dependencies

PHP Build Version
Package Version
No informations.
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 lyxxxh/lartree contains the following files

Loading the files please wait ....