Skip to content

Commit

Permalink
docs/add-type-safe-language-to-docs (#31)
Browse files Browse the repository at this point in the history
* Update description in `composer.json`.

* Update description in `README.md`.

* Update `logo.png`.

---------

Co-authored-by: david_smith <david_smith@sweetwater.com>
  • Loading branch information
zero-to-prod and david_smith authored Oct 27, 2024
1 parent 6dc210d commit 3e152f8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@
[![Packagist Version](https://img.shields.io/packagist/v/zero-to-prod/data-model?color=f28d1a)](https://packagist.org/packages/zero-to-prod/data-model)
[![License](https://img.shields.io/packagist/l/zero-to-prod/data-model?color=pink)](https://github.com/zero-to-prod/data-model/blob/main/LICENSE.md)

Simplify deserialization for your DTOs.
Simplify deserialization using type-safe DTOs.

Use [PHP Attributes](https://www.php.net/manual/en/language.attributes.overview.php) to resolve
and map values to properties on a class.
Use [PHP Attributes](https://www.php.net/manual/en/language.attributes.overview.php) to resolve and map values to properties on a class.

Transform data into hydrated objects by [describing](#property-level-cast) how to resolve values.

## Features

- [Type-Safe](#recursive-hydration): Type-safety is enforced by the PHP language itself. No need to validate a type.
- [Non-Invasive](#hydrating-from-data): Simply add the DataModel trait to a class. No need to extend, implement, or construct.
- [Recursive Instantiation](#recursive-hydration): Recursively instantiate classes based on their type.
- [Type Casting](#property-level-cast): Supports primitives, custom classes, enums, and more.
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"type": "library",
"name": "zero-to-prod/data-model",
"description": "Transform data into a class.",
"description": "Transforms Data into Type-Safe DTOs.",
"keywords": [
"zero-to-prod",
"DataModel",
Expand Down
Binary file modified logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 3e152f8

Please sign in to comment.