<commit_before># LitApi

LitApi is a lite PHP framework to write simple and powerful APIs. 

## Installation

Clone this repository and copy src folder in your project! 

## Usage

Create an index.php file with the following contents:

```php
<?php

require 'src/Autoloader.php';



$app = new LitApi\App();

$app->get('/hello/:name', function ($args) {
    echo "Hello, " . $args['name'];
});

$app->run();
```

You may quickly test this using the built-in PHP server:
```bash
$ php -S localhost:8000
```

Going to http://localhost:8000/hello/john will now display "Hello, john".

## Contributing

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

## License

Thus project is licensed under the MIT license. See [License File](LICENSE.md) for more information.<commit_msg>Update installation and usage parts in README.md<commit_after># LitApi

LitApi is a lite PHP framework to write simple and powerful APIs. 

## Installation

Clone this repository and copy **src** folder in your project! 

## Usage

Create an **index.php** file with the following contents:

```php
<?php

require 'src/Autoloader.php';

$app = new LitApi\App();

// Example, see more in docs
$app->get('/hello/:name', function ($args) {
    echo "Hello, " . $args['name'];
});

$app->run();
```

### Apache

Create an **.htaccess** file with the following contents: 

```
RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
```

## Contributing

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

## License

Thus project is licensed under the MIT license. See [License File](LICENSE.md) for more information.
{'fraction_non_alphanumeric': 0.13902439024390245, 'fraction_numerical': 0.00548780487804878, 'mean_word_length': 4.3452768729641695, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '1387481', 'n_tokens_mistral': 549, 'n_tokens_neox': 507, 'n_words': 187}