Download the PHP package sevaske/support without Composer
On this page you can find all versions of the php package sevaske/support. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download sevaske/support
More information about sevaske/support
Files in sevaske/support
Download sevaske/support
More information about sevaske/support
Files in sevaske/support
Vendor sevaske
Package support
Short Description Reusable traits and utility helpers for PHP
License MIT
Package support
Short Description Reusable traits and utility helpers for PHP
License MIT
Please rate this library. Is it a good library?
Informations about the package support
PHP Support
Lightweight and minimalistic PHP library providing a set of foundational tools for development.
Designed to be practical, extendable, and easy to integrate into projects, offering a flexible base for building more complex functionality.
Installation
Features
Dynamic Attributes (HasAttributes)
- Store attributes dynamically with magic methods:
__get,__set,__isset,__unset. - Supports array-style access via
ArrayAccess. - Utility methods:
fill(array $attributes)— bulk set attributes.has(string $key)— check if an attribute exists.keys()— list all attribute keys.replicate()— clone object with same attributes.toArray(),jsonSerialize()— export attributes.
Example:
Read-Only Attributes (HasReadOnlyAttributesContract)
- Implements a contract to define read-only behavior.
readOnlyAttributescan betrue(all) or an array of keys.- Modifying locked attributes throws
LogicException.
Example:
Contextable Exceptions (HasContext + ContextableException)
- Attach metadata to exceptions.
- Fluent
withContext()method andcontext()retrieval.
Example:
Contributing
Contributions are welcome! Feel free to open issues or submit pull requests.
Please follow PSR-12 coding standards and include tests for any new features or fixes.
License
This project is licensed under the MIT License. See the LICENSE file for details.
All versions of support with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.4 || ^8.0
ext-json Version *
ext-json Version *
The package sevaske/support contains the following files
Loading the files please wait ...