Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fawno/facerelations
https://github.com/fawno/facerelations
Last synced: about 5 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/fawno/facerelations
- Owner: fawno
- Created: 2023-07-21T08:53:39.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-20T03:15:42.000Z (7 months ago)
- Last Synced: 2024-10-30T09:28:36.264Z (16 days ago)
- Language: PHP
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# api Face Relations php class
## Installation
You can install this plugin into your application using
[composer](https://getcomposer.org):```
composer require fawno/face-relations @stable
```## Usage
```php
use Fawno\FaceRelations\apiRelations;// Check NIF
$nif = 'S3100015A';
$result = apiRelations::nif_validation($nif) ? 'Valid' : 'Invalid';// Get relations by NIF (CIF)
var_dump(apiRelations::query(['cif' => 'ESS3100015A']));// Get relations by OC
var_dump(apiRelations::query(['oc' => 'GE0001267']));// Get relations by OG
var_dump(apiRelations::query(['og' => 'A15002920']));// Get relations by UT
var_dump(apiRelations::query(['ut' => 'A15007700']));// Get relations by NIF, OC, OG and UT
var_dump(apiRelations::query(['cif' => 'S3100015A', 'oc' => 'GE0001267', 'og' => 'A15002920', 'ut' => 'A15007701']));```