https://github.com/Sikessem/Typed
Convert PHP values to objects of strict types.
https://github.com/Sikessem/Typed
cast converter data object-oriented-programming oop php poo programmation-orientee-objets strict-types value-object variable-object
Last synced: about 1 year ago
JSON representation
Convert PHP values to objects of strict types.
- Host: GitHub
- URL: https://github.com/Sikessem/Typed
- Owner: sikessem
- License: mit
- Created: 2023-07-27T02:42:27.000Z (almost 3 years ago)
- Default Branch: 0.x
- Last Pushed: 2023-11-15T16:58:12.000Z (over 2 years ago)
- Last Synced: 2024-04-16T22:17:05.615Z (about 2 years ago)
- Topics: cast, converter, data, object-oriented-programming, oop, php, poo, programmation-orientee-objets, strict-types, value-object, variable-object
- Language: PHP
- Homepage: https://packagist.org/packages/sikessem/values
- Size: 79.1 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
[![sikessem-logo]][sikessem-link]
[![php-icon]][php-link]
[![packagist-version-icon]][packagist-version-link]
[![packagist-download-icon]][packagist-download-link]
[![license-icon]][license-link]
[![actions-icon]][actions-link]
[![pr-icon]][pr-link]
[![twitter-icon]][twitter-link]
[sikessem-logo]: https://github.com/sikessem/art/blob/HEAD/images/sikessem.svg
[sikessem-link]: https://github.com/sikessem "Sikessem"
[php-icon]: https://img.shields.io/badge/PHP-ccc.svg?style=flat&logo=php
[php-link]: https://github.com/sikessem/values/search?l=php "PHP code"
[packagist-version-icon]: https://img.shields.io/packagist/v/sikessem/values
[packagist-version-link]: https://packagist.org/packages/sikessem/values "Values Releases"
[packagist-download-icon]: https://img.shields.io/packagist/dt/sikessem/values
[packagist-download-link]: https://packagist.org/packages/sikessem/values "Values Downloads"
[actions-icon]: https://github.com/sikessem/values/workflows/CI/badge.svg
[actions-link]: https://github.com/sikessem/values/actions "Values status"
[pr-icon]: https://img.shields.io/badge/PRs-welcome-brightgreen.svg?color=brightgreen
[pr-link]: https://github.com/sikessem/.github/blob/HEAD/CONTRIBUTING.md "PRs welcome!"
[twitter-icon]: https://img.shields.io/twitter/follow/sikessem.svg?label=@sikessem_tweets
[twitter-link]: https://twitter.com/intent/follow?screen_name=sikessem_tweets "Ping Sikessem"
[license-icon]: https://img.shields.io/badge/license-MIT-blue.svg
[license-link]: https://github.com/sikessem/values/blob/HEAD/LICENSE "Values License"
[conduct-link]: https://github.com/sikessem/values/blob/HEAD/CODE_OF_CONDUCT.md
[discuss-link]: https://github.com/orgs/sikessem/discussions
[docs-link]: https://github.com/sikessem/values#readme "Values Documentation"
***
# PHP Value Objects
Objects with strict types to manage PHP variables and values.
> [!WARNING]
> This package is no longer maintained.
Please use [sikessem/core](https://github.com/sikessem/core) instead.
## π Contents
- [PHP Value Objects](#php-value-objects)
- [π Contents](#-contents)
- [π Requirements](#-requirements)
- [π Getting Started](#-getting-started)
- [β‘οΈ Installation](#οΈ-installation)
- [π§βπ» Usage](#-usage)
- [π§ͺ Testing and debugging](#-testing-and-debugging)
- [π Documentation](#-documentation)
- [π Contribution](#-contribution)
- [π· Code of Conduct](#-code-of-conduct)
- [π₯ Contributing Guide](#-contributing-guide)
- [ποΈ Good First Issues](#οΈ-good-first-issues)
- [π¬ Discussions](#-discussions)
- [π Security Reports](#-security-reports)
- [π License](#-license)
## π Requirements
> - **Requires [PHP >=8.0](https://php.net/releases/)** (at least 8.0.30 recommended to avoid potential bugs).
> - **Requires [Composer v2+](https://getcomposer.org/)** to manage PHP dependencies.
## π Getting Started
### β‘οΈ Installation
Use [Composer](https://getcomposer.org/) to install `sikessem/values`:
```bash
composer require sikessem/values
```
### π§βπ» Usage
```php
update(fn($val) => $val * $val); // 4
$two->set(5); // 5
```
### π§ͺ Testing and debugging
π§Ή Keep a modern codebase with **Pint**:
```bash
composer lint
```
βοΈ Run static analysis:
- Using **PHPStan**:
```bash
composer analyse
```
- Using **Psalm**:
```bash
composer inspect
```
β
Run unit tests using **PEST**
```bash
composer test
```
π Check all code bugs:
```bash
composer debug
```
π Fix the entire code:
```bash
composer fix
```
## π Documentation
The full documentation for the Sikessem Values can be found on [this address][docs-link].
## π Contribution
The main purpose of this repository is to continue evolving Sikessem. We want to make contributing to this project as easy and transparent as possible, and we are grateful to the community for contributing bug fixes and improvements. Read below to learn how you can take part in improving Sikessem.
### [π· Code of Conduct][conduct-link]
Sikessem has adopted a Code of Conduct that we expect project participants to adhere to.
Please read the [full text][conduct-link] so that you can understand what actions will and will not be tolerated.
### π₯ [Contributing Guide][pr-link]
Read our [**Contributing Guide**][pr-link] to learn about our development process, how to propose bugfixes and improvements, and how to build and test your changes to Sikessem.
### ποΈ Good First Issues
We have a list of [good first issues][gfi] that contain bugs which have a relatively limited scope. This is a great place to get started, gain experience, and get familiar with our contribution process.
[gfi]: https://github.com/sikessem/values/labels/good%20first%20issue
### π¬ Discussions
Larger discussions and proposals are discussed in [**Sikessem's GitHub discussions**][discuss-link].
## π Security Reports
If you discover a security vulnerability within [Sikessem][sikessem-link], please email [SIGUI KessΓ© Emmanuel](https://sigui.ci) at [contact@sigui.ci](mailto:contact@sigui.ci). All security vulnerabilities will be promptly addressed.
## π License
The Sikessem Values is open-sourced software licensed under the [MIT License](https://opensource.org/licenses/MIT) - see the [LICENSE][license-link] file for details.
***
Made with β€οΈ by @siguici.