Download the PHP package digitalruby/meta-data without Composer

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

DigitalRuby/MetaData

Adds a flexible key/value table to your Laravel models.

Why this package?

I often find myself needing to store extra bits of information across entities in my apps. This could be a github link, maybe a SEO title or a path to a file.

Instead of expanding my database with new fields across multiple entities, I often resort back to a simple key value table that has a polymorphic relationship to any entity.

This package provides you with that table and a trait that you can add to your models to implement the functionality.

Installation

To install the package, use Composer:

After installing, you should run the migration to create the meta_data table in your database:

This command creates the necessary table for storing meta data related to your models.

Usage

  1. Add the Trait to Your Model:

    First, include the HasMetaData trait in any Eloquent model you wish to associate meta data with.

  2. Setting Meta Data:

    To add or update meta data for a model, use the setMeta method.

    • key: The meta data key.
    • value: The meta data value. Can be a string, array, or object. Arrays and objects are automatically encoded to JSON.
  3. Getting Meta Data:

    Retrieve a value with the getMeta method.

    Optionally, you can retrieve all meta data associated with the model:

  4. Deleting Meta Data:

    To remove a meta data entry, use deleteMeta.

    This will delete the meta data entry with the specified key.

  5. Advanced Usage:

    The getMeta method supports additional query modifications via a callback function, allowing for more complex queries.

Requirements

Contributing

We welcome contributions! Please submit pull requests for bug fixes, features, or improvements.

License

The DigitalRuby/MetaData package is open-sourced software licensed under the MIT license.


All versions of meta-data with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
illuminate/support Version ^10.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 digitalruby/meta-data contains the following files

Loading the files please wait ....