Download the PHP package buqiu/repository without Composer

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

Laravel Repository

Laravel Repository 是 Laravel 的一个软件包,用于抽象数据库层。 这使应用程序易于维护。

安装

从终端运行以下命令:

使用

首先,使用以下命令创建存储库类:

其中 Film 是现有模型的名称.如果模型不存在,它将为您生成.

最后,在控制器中使用存储库:

发布配置

如果您希望覆盖存储库和条件所在的路径,请发布配置文件:

然后只需打开 config/repositories.php 并编辑即可!

可用方法

可以使用以下方法: Buqiu\Repository\Contracts\RepositoryInterface

Buqiu\Repository\Contracts\CriteriaInterface

用法示例

在存储库中创建新 user

更新现用的 user

删除 user

通过 user_id 查找 user

您还可以选择要提取的字段

根据单个条件查询单条数据

或者你可以通过单个条件获取所有数据

根据多个字段获取所有结果

根据属性条件获取多条并且分页数据

Criteria(标准)

标准是将特定标准或标准集应用于存储库查询的简单方法。

要创建一个Criteria类,请运行以下命令:

以下是示例条件:

现在,在控制器类内部,您可以调用pushCriteria方法:

测试

license

Pouch is released under the MIT License.


All versions of repository with dependencies

PHP Build Version
Package Version
Requires php Version >=7.2.0
illuminate/support Version ^5.5|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0
illuminate/database Version ^5.5|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0
illuminate/filesystem Version ^5.5|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0
illuminate/console Version ^5.5|^6.0|^7.0|^8.0|^9.0|^10.0|^11.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 buqiu/repository contains the following files

Loading the files please wait ....