From 49be107eb5e36532b79b0163a1f1978008d367ff Mon Sep 17 00:00:00 2001 From: Olivier Laviale Date: Fri, 9 Aug 2024 06:39:44 +0200 Subject: [PATCH] Remove the "Accessing" section It was redundant with the usage section --- README.md | 29 ++--------------------------- 1 file changed, 2 insertions(+), 27 deletions(-) diff --git a/README.md b/README.md index 330e265..a0e11ab 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ # CLDR [![Packagist](https://img.shields.io/packagist/v/icanboogie/cldr.svg)](https://packagist.org/packages/icanboogie/cldr) -[![Code Quality](https://img.shields.io/scrutinizer/g/ICanBoogie/CLDR/master.svg)](https://scrutinizer-ci.com/g/ICanBoogie/CLDR) -[![Code Coverage](https://img.shields.io/coveralls/ICanBoogie/CLDR/master.svg)](https://coveralls.io/r/ICanBoogie/CLDR) +[![Code Quality](https://img.shields.io/scrutinizer/g/ICanBoogie/CLDR.svg)](https://scrutinizer-ci.com/g/ICanBoogie/CLDR) +[![Code Coverage](https://coveralls.io/repos/github/ICanBoogie/CLDR/badge.svg?branch=6.0)](https://coveralls.io/r/ICanBoogie/CLDR) [![Downloads](https://img.shields.io/packagist/dt/icanboogie/cldr.svg)](https://packagist.org/packages/icanboogie/cldr) The __CLDR__ package helps internationalize your application by leveraging the data and conventions @@ -219,31 +219,6 @@ $cldr = new Repository($provider); -### Accessing the repository - -The repository can be accessed like a big array, but it also provides interfaces to the most -important data such as locales, territories, numbers, currencies… - -The following example demonstrates how the repository can be used to access locales and -supplemental data: - -```php -locale_for('en'); -$french_locale = $repository->locale_for('fr'); - -$supplemental = $repository->supplemental; -# reading the default calendar -echo $supplemental['calendarPreferenceData']['001']; // gregorian -``` - - - ----------