overdesign/cif-generator

Spanish CIF number generator

2.0.0 2023-07-12 11:07 UTC

This package is auto-updated.

Last update: 2024-10-12 14:09:05 UTC


README

Build Status codecov Scrutinizer StyleCI

Spanish CIF number generator

This is a simple library for generating valid spanish CIF (VAT) numbers

Installation

Install using composer

composer require overdesign/cif-generator

Usage

scru You can generate CIF numbers in two ways:

1 - via static method

<?php

use Overdesign\CifGenerator\Cif;

echo Cif::generate();

2 - via object instance

<?php

use Overdesign\CifGenerator\Cif;

$cifGenerator = new Cif();

echo $cifGenerator->get();