<commit_before># API - librerias para php

## COMANDOS PARA DE FUNCIONAMIENTO PHP

- instalar componentes de composer 

```shell
composer install
```

- actualizar composer

```shell
composer self-update
```

- instalar paquetes adicionales a composer

```shell
composer require "nombre" --dev
```

- cargamos la libreria de composer

```shell
composer dump-autoload --optimize 
```


- instalar componentes de composer 

```shell
composer remove "nombre" 
composer global remove phpunit/phpunit 
```

<commit_msg>se implemento un ejemplo para usar en el readme<commit_after># API - ORM PHP

## COMANDOS PARA DE FUNCIONAMIENTO PHP

- instalar componentes de composer 

```shell
composer install
```

- actualizar composer

```shell
composer self-update
```

- instalar paquetes adicionales a composer

```shell
composer require "nombre" --dev
```

- cargamos la libreria de composer

```shell
composer dump-autoload --optimize 
```

- remover componentes de composer 

```shell
composer remove "nombre" 
composer global remove phpunit/phpunit 
```
## Manual de uso:

#### Fetching Row:
This method always returns only 1 row.
```php
<?php
$ages     =  $db->row("SELECT * FROM Persons WHERE  id = :id", array("id"=>"1"));
```
##### Result
| id | firstname | lastname | sex | age
|:-----------:|:------------:|:------------:|:------------:|:------------:|
| 1       |        John |     Doe    | M | 19

#### Fetching Single Value:
This method returns only one single value of a record.
```php
<?php
// Fetch one single value
$db->bind("id","3");
$firstname = $db->single("SELECT firstname FROM Persons WHERE id = :id");
```
##### Result
|firstname
|:------------:
| Zoe
{'fraction_non_alphanumeric': 0.17767106842737096, 'fraction_numerical': 0.003601440576230492, 'mean_word_length': 3.241730279898219, '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': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '552879', 'n_tokens_mistral': 578, 'n_tokens_neox': 534, 'n_words': 177}