<commit_before>Locating Files with Puli
========================

Puli provides access to the files (*resources*) of your PHP project through a
unified naming system. Essentially, Puli lets you use a *resource locator* to
access files like this:

```php
use Webmozart\Puli\StreamWrapper\ResourceStreamWrapper;

echo $locator->get('/webmozart/puli/css/style.css')->getPath();
// => /path/to/resources/assets/css/style.css

// Register a PHP stream wrapper to use the locator with PHP's file functions
ResourceStreamWrapper::register('resource', $locator);

echo file_get_contents('resource:///webmozart/puli/css/style.css');
```

This document teaches you how to create resource locators, register files with
them and much more.

Installation
------------<commit_msg>README improvement<commit_after>Locating Files with Puli
========================

Puli provides access to the files (*resources*) of your PHP project through a
unified naming system. Essentially, Puli lets you use a *resource locator* to
access files like this:

```php
use Webmozart\Puli\StreamWrapper\ResourceStreamWrapper;

echo $locator->get('/webmozart/puli/css/style.css')->getPath();
// => /path/to/resources/assets/css/style.css

// Register a stream wrapper to use the locator with PHP's file functions
ResourceStreamWrapper::register('resource', $locator);

echo file_get_contents('resource:///webmozart/puli/css/style.css');
```

This document teaches you how to create resource locators, register files with
them and much more.

Installation
------------
{'fraction_non_alphanumeric': 0.14742335290280495, 'fraction_numerical': 0.0, 'mean_word_length': 5.015686274509804, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4165852', 'n_tokens_mistral': 432, 'n_tokens_neox': 423, 'n_words': 146}