attributary
php-enum
Our great sponsors
attributary | php-enum | |
---|---|---|
3 | 2 | |
1 | 2,709 | |
- | 0.2% | |
5.6 | 3.2 | |
over 2 years ago | 2 months ago | |
PHP | PHP | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
attributary
-
Attributary: A library for working with PHP 8 Attributes
God damnit how did I miss that? Well, at least I didn't spend much time on this: https://github.com/cnizzardini/attributary/blob/main/src/AttributeFactory.php
-
Weekly "ask anything" thread
Looking for feedback on this: https://github.com/cnizzardini/attributary
php-enum
-
Weekly "ask anything" thread
My understanding of the new PHP enums are that they provide a first-class citizen for enum patterns in userland that are extremely common. For example, there is a popular enum library https://github.com/myclabs/php-enum. But many people craft these by hand in their projects. The main idea is to provide an abstraction over "strings that inform business logic" for lack of a better term.
-
My opinion on the PHP 8.1 Enum RFC
This feature alone would likely cause me to drop myclabs/php-enum as my enum implementation.
What are some alternatives?
laravel-route-attributes - Use PHP 8 attributes to register routes in a Laravel app
php-enum - Simple and fast implementation of enumerations with native PHP
laravel-attributes - ⚠️ [ABANDONED] Rinvex Attributable is a robust, intelligent, and integrated Entity-Attribute-Value model (EAV) implementation for Laravel Eloquent, with powerful underlying for managing entity attributes implicitly as relations with ease. It utilizes the power of Laravel Eloquent, with smooth and seamless integration.
laravel-enum - Simple, extensible and powerful enumeration implementation for Laravel.
Koriym.Attributes - A reader can read both doctrine/annotations and PHP8 attributes with a doctrine annotation interface.
enum - Strongly typed enums in PHP supporting autocompletion and refactoring
framework-extra-bundle - Attributes for request/response operations, content negotiation, and more for Symfony projects.
php-ddd-example - 🐘🎯 Hexagonal Architecture + DDD + CQRS in PHP using Symfony 6
FreeScout - FreeScout — Free self-hosted help desk & shared mailbox (Zendesk / Help Scout alternative)