Skip to content

aminnairi/php-siren

Repository files navigation

aminnairi/siren

French SIREN number validator

Test

Installation

mkdir project
cd project
composer init
composer require aminnairi/siren

Usage

touch index.php
<?php

use Aminnairi\Siren\Siren;

require "./vendor/autoload.php";

var_dump(Siren::isValid("732829320"));
var_dump(Siren::isValid("732829321"));
php index.php
bool(true)
bool(false)