conquest/core

Shared utilities for developing the Honed Laravel ecosystem.

Fund package maintenance!
Jdw5

v0.1.0-alpha.2 2024-11-23 08:09 UTC

This package is auto-updated.

Last update: 2024-11-23 08:13:22 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.