Download the PHP package unostentatious/repository without Composer

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

Unostentatious Repository
[![Latest Stable Version](https://poser.pugx.org/unostentatious/repository/v/stable?format=flat-square)](https://packagist.org/packages/unostentatious/repository) [![Total Downloads](https://poser.pugx.org/unostentatious/repository/downloads?format=flat-square)](https://packagist.org/packages/unostentatious/repository) [![License](https://poser.pugx.org/unostentatious/repository/license?format=flat-square)](https://packagist.org/packages/unostentatious/repository)
# Unostentatious Repository An abstraction layer that let's you implement repository pattern for your models.


Requirements

Installation

Step 1: Install through Composer

`

Step 2: Publish the service provider

In Laravel:
  1. In Laravel, edit config\app.php and add the provider under package service provider section:

``

  1. Then open your terminal, while in the Laravel app's root directory, publish the vendor:

``

In Lumen:
  1. Copy the unostent-repository.php config file from vendor/unostentatious/repository/Integration/config/ directory
  2. If the {root}/config/ directory is not existing in your Lumen app, make sure to create it first, paste the config file you just copied
  3. Edit bootstrap/app.php then register the service provider and add the package's config explicitly like so:


---
#### Step 3: Custom Configurations
Right now the package's configuration is already residing to your app's config directory `/config`,
there are 3 values in the package's config that you can customize to fit your needs:

``

| Key                                    | Value                                                              
| -------------------------------------- | ---------------------------------------------------------------------
| **root**                               | The base directory in which the application is assigned the folder,
|                                        | and the structure of the repositories where will be based on.
|                                        |     sample value:                        
|                                        |        - Laravel: \app_path()
|                                        |        - Lumen: \base_path() . '/app'  
|                                        |
| **destination**                        | Define the repositories destination within the `{root}` directory.
|                                        |     sample value:
|                                        |        - 'Database'
|                                        |
|                                        | When a value is given ie `Database` the default path will be:
|                                        | `{root}/Database/{placeholder}
|                                        |
| **placeholder**                        | Define the repositories placeholder within the `{root}/{destination}`,
|                                        |      sample value:
|                                        |         - Repo 
|                                        | when a value is given ie `Repo` the default path will be:
|                                        |`{root}/{destination}/Repo`.
|                                        |
|                                        | The default value is null, which makes the folder structure into:
|                                        | `{root}/{destination}/Repositories`

#### Installation Done:
Viola! Just like that your ready to use `Unostentatious Repository` in your Laravel or Lumen application, happy coding!

-----------------------------

#### Usage:
When creating the repository classes it **MUST** reside on the specified path `{root}/{destination}/{placeholder}`, 
where in this case the default path will be `app/Database/Repositories`:

#### Step 1: Create the Repositories
It must be composed of a **concrete** class, and it's corresponding **interface**.

#### Step 2: Follow the convention
Then the concrete class **MUST** extend the **AbstractEloquentRepository** from the package.

See the example:

#### Step 3: Load them to the IoC
Then after these classes has been written, just execute `composer dump-autoload` to invoke the IoC and these classes will now be injectable to consuming classes ie: `Controllers`.

All versions of repository with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
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 unostentatious/repository contains the following files

Loading the files please wait ....