8000 GitHub - abdala/readonly
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

abdala/readonly

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Read Only PHP Classes (Immutable Objects)

Disclamer: This is a POC, it is experimental and there is magic involved.

The goal of this project is provide a way to create Immutable PHP Objects.

Instalation

composer require abdala/readonly

Usage

<?php

use Abdala\Readonly;

class Email
{
    use Readonly;
    
    private string $value;
}

$email = new Email('abdala.cerqueira@gmail.com');

License

This project is under LGPLv3

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0