honed/core

Shared utilities for developing the Honed Laravel ecosystem.

Fund package maintenance!
Jdw5

v0.1.0-alpha.1 2024-11-21 08:49 UTC

This package is not auto-updated.

Last update: 2024-11-21 12:35:46 UTC


README

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

Honed Core is a package of sharable traits and the Primitive object used across all the Honed package ecosystem to handle serialization and other core functionality.

Installation

You can install the package via composer:

composer require honed/core

Usage

Extend a class using the Primitive object to then use the traits provided to add functionality to your classes simply. The Primitive object is designed for serialization to be sent over wire.

use Honed\Core\Primitive;

class MyClass extends Primitive
{
    use ...;
    
    public class toArray(): array
    {
        return [];
    }
}

Testing

composer test

Credits

License

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