Download the PHP package josrom/eloquent-crud-repository without Composer

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

Eloquent CRUD Repository

CircleCI Latest Stable Version Total Downloads License

Introduction

EloquentCrudRepository provides a well tested and complete base to create more model repositories using the repository pattern with Eloquent as ORM.

Public methods available

Name Parameters Return
all array $with = [] \Illuminate\Database\Eloquent\Collection
allWithTrashed array $with = [] \Illuminate\Database\Eloquent\Collection
allTrashed array $with = [] \Illuminate\Database\Eloquent\Collection
find int $id, array $with = [] \Illuminate\Database\Eloquent\Model
findWithTrashed int $id, array $with = [] \Illuminate\Database\Eloquent\Model
findTrashed int $id, array $with = [] \Illuminate\Database\Eloquent\Model
findBy string $field, mixed $value, string $comparison = '=', bool $strict = true, array $with = [] \Illuminate\Database\Eloquent\Model
findByWithTrashed string $field, mixed $value, string $comparison = '=', bool $strict = true, array $with = [] \Illuminate\Database\Eloquent\Model
findByTrashed string $field, mixed $value, string $comparison = '=', bool $strict = true, array $with = [] \Illuminate\Database\Eloquent\Model
newModel array $params = [] \Illuminate\Database\Eloquent\Model
create array $params \Illuminate\Database\Eloquent\Model
update int $id, array $params \Illuminate\Database\Eloquent\Model
delete int $id bool
forceDelete int $id bool
restore int $id bool
paginate \Illuminate\Database\Eloquent\Builder $query, int $page = 0, int $limit = 15 object
paginateCollection \Illuminate\Database\Eloquent\Collection $collection, int $page = 0, int $limit = 15 object
pagination int $page = 0, int $limit = 15 object
paginationWithTrashed int $page = 0, int $limit = 15 object
paginationOnlyTrashed int $page = 0, int $limit = 15 object

Protected methods available

Name Parameters Return
checkCanShow \Illuminate\Database\Eloquent\Model $model void
checkCanCreate array $params void
checkCanUpdate \Illuminate\Database\Eloquent\Model $model, array $newValues void
checkCanDelete \Illuminate\Database\Eloquent\Model $model void
checkCanRestore \Illuminate\Database\Eloquent\Model $model void
canShow \Illuminate\Database\Eloquent\Model $model bool
canCreate array $params bool
canUpdate \Illuminate\Database\Eloquent\Model $model, array $newValues bool
canDelete \Illuminate\Database\Eloquent\Model $model bool
canRestore \Illuminate\Database\Eloquent\Model $model bool
hasSoftDeletes bool

Installation

To get the last version of EloquentCrudRepository, simply require the project using Composer:

Instead, you may of course manually update your require block and run composer update if you so choose:

License

EloquentCrudRepository is open-sourced software licensed under the MIT license


All versions of eloquent-crud-repository with dependencies

PHP Build Version
Package Version
Requires php Version ^7.3|^8.0
illuminate/database Version ^8.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 josrom/eloquent-crud-repository contains the following files

Loading the files please wait ....