From c9852a5393d5bcadde7b968fbdd98d05f6c554a9 Mon Sep 17 00:00:00 2001 From: Maxime Steinhausser Date: Thu, 30 Dec 2021 12:10:41 +0100 Subject: [PATCH] Minor tweaks --- README.md | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c65f7fa0..3df5c94c 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ Elao Enumerations ================= -[![Latest Stable Version](https://poser.pugx.org/elao/enum/v/stable?format=flat-square)](https://packagist.org/packages/elao/enum) +[![Latest Version](https://poser.pugx.org/elao/enum/v?format=flat-square)](https://packagist.org/packages/elao/enum) [![Total Downloads](https://poser.pugx.org/elao/enum/downloads?format=flat-square)](https://packagist.org/packages/elao/enum) [![Monthly Downloads](https://poser.pugx.org/elao/enum/d/monthly?format=flat-square)](https://packagist.org/packages/elao/enum) [![Tests](https://github.com/Elao/PhpEnums/actions/workflows/ci.yml/badge.svg)](https://github.com/Elao/PhpEnums/actions/workflows/ci.yml) @@ -35,10 +35,24 @@ enum Suit: string implements ReadableEnumInterface

📢 This project used to emulate enumerations before PHP 8.1.
For the 1.x documentation, click here +

+ You can also consult this issue to follow objectives & progress for the V2 of this lib.

--- +## Installation + +```bash +composer require "elao/enum:^2.0-alpha" +``` + +Or, in order to help and test latest changes: + +```bash +composer require "elao/enum:^2.x-dev" +``` + ## Readable enums Readable enums provide a way to expose human-readable labels for your enum cases, by adding a @@ -193,7 +207,7 @@ class CardType extends AbstractType #### Resolve controller arguments from route path -As of Symfony 6.1+, backed enum cases can be resolved from route path parameters: +As of Symfony 6.1+, [backed enum cases will be resolved](https://github.com/symfony/symfony/pull/44831) from route path parameters: ```php class CardController