Download the PHP package cleaniquecoders/traitify without Composer
On this page you can find all versions of the php package cleaniquecoders/traitify. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download cleaniquecoders/traitify
More information about cleaniquecoders/traitify
Files in cleaniquecoders/traitify
Package traitify
Short Description Traitify is a Laravel package designed to streamline and enhance your development process by providing a collection of reusable traits and contracts.
License MIT
Homepage https://github.com/cleaniquecoders/traitify
Informations about the package traitify
Traitify
Traitify is a Laravel package designed to streamline and enhance your development process by providing a collection of reusable traits and contracts. It allows developers to easily integrate common functionalities into their Laravel applications while adhering to a consistent, maintainable codebase.
With Traitify, you can reduce boilerplate code, simplify repetitive tasks, and standardize behavior across your application. It offers a clean, modular approach to sharing common functionality through traits, while contracts provide flexibility and extensibility for more complex behavior patterns.
Key Features
- Reusable Traits: Simplify and standardize common functionalities such as logging, validation, and caching.
- Extensible Contracts: Ensure your application is easily extendable with well-defined contracts.
- Modular and Customizable: Pick and choose the traits and contracts you need for your specific project.
Installation
You can install the package via Composer:
Usage
This package provides a collection of reusable traits and contracts that can be easily integrated into your Laravel applications. You can use the traits to add common functionality to your models, controllers, or other classes, and the contracts to ensure consistent interfaces for your classes.
Traits
Below are the available traits under the src/Concerns
directory:
- InteractsWithApi: Provides methods to interact with APIs.
- InteractsWithDetails: Handles interactions with detailed data.
- InteractsWithEnum: Facilitates the use of enums in your models or classes.
- InteractsWithMeta: Provides functionality for managing meta fields.
- InteractsWithResourceRoute: Adds support for handling resource routes.
- InteractsWithSearchable: Adds searching capabilities to your models or queries.
- InteractsWithToken: Handles operations related to tokens.
- InteractsWithUser: Provides methods to interact with users.
- InteractsWithUuid: Adds UUID support to your models or other classes.
Contracts
Here are the available interfaces under the src/Contracts
directory:
- Api: Defines the structure for interacting with APIs.
- Builder: Provides a contract for builder classes.
- Enum: Ensures proper implementation of enums.
- Execute: Defines an execution contract for action-based classes.
- Menu: Provides a contract for building and managing menus.
- Processor: Ensures the implementation of data processing workflows.
Example Usage
You can easily incorporate these traits and contracts into your Laravel application like this:
For a full list of traits and contracts and detailed usage examples, explore the Concerns directories.
Testing
To run the tests, use:
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
We welcome contributions! Please see CONTRIBUTING for details on how to get involved.
Security Vulnerabilities
If you discover any security issues, please review our security policy for reporting vulnerabilities.
Credits
- Nasrul Hazim Bin Mohamad
- All Contributors
License
This package is open-sourced software licensed under the MIT License.
All versions of traitify with dependencies
spatie/laravel-package-tools Version ^1.16
illuminate/contracts Version ^10.0||^11.0