Download the PHP package onaonbir/oo-metas without Composer

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

๐Ÿง  OOMetas โ€” Flexible Metadata Manager for Laravel

OOMetas is a powerful, refactored polymorphic metadata management system for Laravel.
It provides a clean architecture with repository pattern, service layer, caching, and extensive features for managing dynamic key-value data on any model.


โœจ Key Features


๐Ÿ”ง Installation

  1. Install the package:

  2. Publish and run migrations:

  3. Publish configuration (optional):

๐Ÿ—„๏ธ Architecture Overview


๐Ÿš€ Usage Guide

1. ๐Ÿงฉ Using the Trait (Recommended)

Add the HasMetas trait to any model:

Basic Operations

Batch Operations

Numeric Operations

Special Operations

Array Operations

Type-Safe Getters

2. ๐Ÿ”— Connected Models

Connect metadata to relationships between models:

3. ๐ŸŽฏ Using the Facade

4. ๐Ÿ—๏ธ Direct Service Usage


โš™๏ธ Configuration

Cache Configuration

Validation Configuration

Performance Configuration


๐Ÿ›ก๏ธ Error Handling

The package provides specific exceptions for better error handling:


๐Ÿงช Testing

The refactored architecture makes testing much easier:


๐Ÿ“ˆ Performance Considerations

  1. Use Caching: Enable caching for frequently accessed metadata
  2. Batch Operations: Use setMany/getMany for multiple operations
  3. Indexed Queries: The package automatically indexes queries by model and key
  4. Connection Scoping: Use connected models to scope metadata efficiently

๐Ÿ”„ Migration from Previous Versions

The new version is backward compatible, but to take advantage of new features:

  1. Update your code to use the trait methods instead of direct OOMetas:: calls
  2. Enable caching in configuration
  3. Use batch operations where possible
  4. Consider using Value Objects for better type safety

๐Ÿ“š Advanced Usage

Custom Repository Implementation

Custom Value Objects


๐Ÿ› ๏ธ Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Write tests for your changes
  4. Ensure all tests pass
  5. Submit a pull request

๐Ÿ“„ License

MIT ยฉ OnaOnbir


๐ŸŽฏ Example Use Cases


License

MIT - See LICENSE for details.

Built by OnaOnbir.


All versions of oo-metas with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
illuminate/support Version ^10.0|^11.0|^12.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 onaonbir/oo-metas contains the following files

Loading the files please wait ...