Download the PHP package leemason/metable without Composer

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

Laravel Metable Package

Packagist License Latest Stable Version Total Downloads Build Status

The Laravel Eloquent Metable Package is designed specifically for associating "meta" information to an Eloquent model.

Installation

Just place require new package for your laravel installation via composer.json

Then hit composer update

Compatability

The Metable package has been developed with Laravel 5.1, i see no reason why it wouldnt work with 5.0 or even 4 but it is only tested for 5.1.

Introduction

There are many use cases for this, most notably a User model where you may need the ability to assign multiple different types of profile information.

Ideally you would always provide unique columns on your model tables to handle all of the data, but in more dynamic applications this may not always be a viable option.

This is were "meta" information comes into its own.

This package provides the means to associate any kind of data to a model, from ints, float, bools, arrays, to Collections and objects.

Not only does it make it easy to assign this data, it also formats the data for the database and on return usage.

For example a User may need multiple social links, with this package you can create a collection with the data, save right there and then as a Collection (which gets saved as json encoded string). Then whenever its retrieved in the future it will be converted back to a Collection.

The "meta" is saved as related Eloquent models with simple key/value access.

In the background the meta model also saved the values "type" for use when returning.

The package comes with 2 traits which adds all the functionality needed and a few helpers to make managing the information even easier.

The trait is used to turn an Eloquent model into a meta model and provides all the background logic for formatting the meta value.

Then the main functionality is accessed through the trait.

Here are a few examples (checkout the docs folder for more details information).


All versions of metable with dependencies

PHP Build Version
Package Version
Requires illuminate/support Version 5.1.*
illuminate/database Version 5.1.*
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 leemason/metable contains the following files

Loading the files please wait ....