Download the PHP package priblo/laravel-has-attributes without Composer

On this page you can find all versions of the php package priblo/laravel-has-attributes. 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-has-attributes

Laravel Has Attributes

EAV Attributes in an handy Trait

Build Status Codacy Badge

This package provides a trait to attach attributes to any Eloquent model. The common use case is to add Settings to a model.

Attributes are stored following the Entity-Attribute-Value model. Data is abstracted using the Decorator pattern.

Install

Requires: Laravel >=5.4

Composer

Laravel

This package supports Auto Discovery. If your Laravel version doesn't support it or you have disabled it, you can install this package by adding to the 'providers' array in ./config/app.php

Then run:

Then migrate:

Cache

Caching requires a driver which supports tags. File and Database won't work, redis is suggested. Please make sure to either disable caching in the config or use the array driver for local development.

In the has-settings.php config file you can enable/disable caching and set the cache expiration time.

Caching is enabled by default

Notes

Please do remember that each of the settings in a EAV model are set in a TEXT field, thus a value of true will be stored as "1"

Roadmap


All versions of laravel-has-attributes with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6.4
illuminate/support Version ~5.4.0|~5.5.0|~5.6.0|~5.7.0
illuminate/config Version ~5.4.0|~5.5.0|~5.6.0|~5.7.0
illuminate/database Version ~5.4.0|~5.5.0|~5.6.0|~5.7.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 priblo/laravel-has-attributes contains the following files

Loading the files please wait ....