Skip to content

Commit

Permalink
Remove the "Accessing" section
Browse files Browse the repository at this point in the history
It was redundant with the usage section
  • Loading branch information
olvlvl committed Aug 9, 2024
1 parent d803673 commit 49be107
Showing 1 changed file with 2 additions and 27 deletions.
29 changes: 2 additions & 27 deletions README.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
<?php

/**
* @var ICanBoogie\CLDR\Repository $repository
*/

$english_locale = $repository->locale_for('en');
$french_locale = $repository->locale_for('fr');

$supplemental = $repository->supplemental;
# reading the default calendar
echo $supplemental['calendarPreferenceData']['001']; // gregorian
```



----------


Expand Down

0 comments on commit 49be107

Please sign in to comment.