定制 veewee/reflecta 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

veewee/reflecta

最新稳定版本:0.14.0

Composer 安装命令:

composer require veewee/reflecta

包简介

Unleash the Power of Optics in your code!

README 文档

README

🪞 REFLECTA 🪞

Unleash the Power of Optics in your code

Welcome to Reflecta!

Transform your data like never before with this optics implementation – a set of sleek, intuitive tools designed to empower your code with the finesse of reflection, the precision of lenses, and the magic of Isomorphisms. Say goodbye to the complexities, and hello to a world where building, accessing and manipulating your data structures becomes as effortless as a brushstroke on a canvas.

Dive into this Optics Toolkit, where coding meets artistry, and simplicity meets power. It's not just about data – it's about orchestrating a symphony of possibilities. Your data has never looked so good!

Installation

Reflecta is installed via Composer.

composer require veewee/reflecta

Requires PHP 8.1+

Warning. This package is primarily published to receive early feedback and for contributors, during this development phase we cannot guarantee the stability of the APIs, consider each release to contain breaking changes.

Psalm support

This package is created with type-safety and error awareness in mind.

In order to have better type inference, this package comes shipped with a psalm plugin. You can enable it by:

./vendor/bin/psalm-plugin enable 'VeeWee\Reflecta\Psalm\Plugin'

Requires vimeo/psalm 5+

Components

This package provides following components:

  • ArrayAccess: Helps you read from and write to arrays.
  • Iso: Provides bidirectional transformations on your data.
  • Lens: Separate your data from it's structure
  • Reflect: Helps you read from and write to objects in a runtime-safe context.

Inspiration

This library was inspired by the following projects:

统计信息

  • 总下载量: 164.72k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 12
  • 点击次数: 1
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 12
  • Watchers: 2
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-11-16