Download the PHP package skotner/laravel-meta without Composer

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

Create meta tags on all Laravel models

The skoTner/laravel-meta package provides easy to use functions for setting, getting and deleting meta tags on all your Eloquent models. The Package stores all meta tags in the meta table, or you can choose custom table if needed.

Here's a demo of how you can use it:

You can also set multiple tags at once:

Documentation

You'll find the documentation on https://github.com/skoTner/laravel-meta.

Find yourself stuck using the package? Found a bug? Do you have general questions or suggestions for improving? Feel free to create an issue on GitHub, I'll try to address it as soon as possible.

If you've found a security issue please mail andreas@skotner.net instead of using the issue tracker.

Installation

You can install the package via composer:

The package will automatically register itself.

You can publish the migration and config with:

Note: The default migration assumes you are using integers for your model IDs. If you are using UUIDs, or some other format, adjust the format of the model_id field in the published migration before continuing.

After publishing the migration you can create the meta table by running the migrations:

You can optionally change the table name in the config file:

Usage

First, you add the Skotner\Meta\Meta trait to your model(s):

This allows you to set, get and delete meta tags on the model. To use these functions, it is as easy as:

Set a meta tag

You can either set a single meta tag to a model, or you can assign multiple meta tags in one go:

Get a meta tag

Getting a meta tag is as easy as it can be:

Deleting a meta tag

Changelog

Please see CHANGELOG for more information about recent changes.

Security

If you discover any security related issues, please email andreas@skotner.net instead of using the issue tracker.

Free to use

You're free to use this package, but if it makes it to your production environment we highly appreciate you stating credits to us:

We are: Skotner Gruppen AS - www.skotner.no - Norway

Credits

License

The MIT License (MIT). Please see License File for more information.


All versions of laravel-meta with dependencies

PHP Build Version
Package Version
Requires laravel/framework Version >=6.20.12
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 skotner/laravel-meta contains the following files

Loading the files please wait ....