Download the PHP package phoenix/eloquent-meta without Composer

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

This should be considered abandoned. It may not even work with newer versions of Laravel. I have moved on from Laravel and PHP. Any PR issued will be accepted w/o question. If you want to own this repository, open an issue and contact me.

Phoenix Eloquent Meta

Latest Version Build Status Total Downloads

Attach meta data to Laravel's Eloquent models.

Which Version?
Stable Version: 1.4. works with Laravel 5. or independently. Pulls Eloquent in automatically.

To use for Laravel 4, see version 1.2.*

Installation

Install through Composer.

Please note only php 5.6 and 7+ are supported.

If you are using EloquentMeta and Eloquent without using Laravel, you will also have to setup Eloquent as detailed in its documentation.

If you are using Laravel, then you'll want to include the ServiceProvider that will register commands and the like. Update config/app.php to include a reference to this package's service provider in the providers array.

Table Structure

If you are using Laravel, run the migration php artisan vendor:publish and php artisan migrate to create the database table.

If you are not using Laravel then you must create the table manually.

Usage

Add the trait to all models that you want to attach meta data to:

Then use like this:

Unique Meta Models and Tables

You can also define a specific meta model for a meta type. For instance, your User model can use UserMeta model with custom methods and all. Using the example above:

Then in SomeModelMeta simply extends Phoenix\EloquentMeta\Meta. You may now add custom methods to the meta model. You may also dictate which table the metadata is saved to by adding

If you are using EloquentMeta independent of Laravel, then you will have to create the database table manually.

If you are using Laravel, then include the service provider in your config/app.php

Then run to create the migration and run to build the table.

Contributing

Please se [CONTRIBUTING.md] for more information and for testing.

Thank you and Credits

Contributors

Many thanks to Boris Glumpler and ScubaClick for the original package!


All versions of eloquent-meta with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6.4
illuminate/database Version 5.4.*|5.5.*|5.6.*|5.7.*
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 phoenix/eloquent-meta contains the following files

Loading the files please wait ....