Download the PHP package milwad/laravel-attributes without Composer

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

Laravel Attributes

Laravel-Attributes

Latest Stable Version Total Downloads License Passed Tests PHP Version Require


The laravel-attributes package is a tool designed to help Laravel developers easily manage and implement custom attributes in their projects. It enables you to define attributes directly on Eloquent models, making it simpler to handle dynamic or calculated properties without directly modifying the database schema. With this package, you can create and configure attribute sets for models, making it easier to organize and extend data handling in Laravel applications. It's especially useful for projects that require customizable and flexible data models.
You don't have any stress for attributes! You can create attributes for any model and display like drink water :)

Requirements


Attributes L9 L10
1.0 :white_check_mark: :white_check_mark:

Installation


After publish config files.

After publish, you migrate the migration file.

Usage

First, you use trait in model.

After, you have access to attributes relation and etc... .

Save attribute

If you want to attach attribute to a model, you can use attachAttribute method.
attachAttribute method take a title and value.

Save attribute multiple

If you have multiple attributes you can use attachAttributes method to save attributes for a model.

Get attributes with query

If you want to retrieve attributes from relation you can use attributes.

Check attribute value is exists

Maybe you want to check one model has an attribute value you can use hasAttributeValue method.

Check attribute value is exists

Maybe you want to check one model has an attribute title you can use hasAttributeTitle method.

Delete all attributes

If you want to delete all attributes of one model you can use deleteAllAttribute method.

Delete special attributes

If you want to delete specific attribute of a model you can use deleteAttribute method.

Delete special attributes by title

If you want to delete specific attribute by title you can use deleteAttributeByTitle method.

Maybe you have two attributes with same title, if you delete with this method, will be deleted two attributes

Delete special attributes by value

If you want to delete specific attribute by value you can use deleteAttributeByValue method.

Maybe you have two attributes with same value, if you delete with this method, will be deleted two attributes

Testing

Run the tests with:

Customize

If you want change migration table name or change default model you can use laravel-attributes config that exists in config folder.

License

Contributing

This project exists thanks to all the people who contribute. CONTRIBUTING

Security

If you've found a bug regarding security please mail [email protected] instead of using the issue tracker.

Donate

If this package is helpful for you, you can buy a coffee for me :) ❤️


All versions of laravel-attributes with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
laravel/framework Version ^9.0|^10.0|^11.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 milwad/laravel-attributes contains the following files

Loading the files please wait ....