Download the PHP package amine-zhioua/degache-php without Composer

On this page you can find all versions of the php package amine-zhioua/degache-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package degache-php

degache-php

A framework-agnostic PHP library of Tunisian utilities — validators for phone numbers, CIN, RIB, car plates, postal codes, and tax IDs, plus locale-aware currency and date formatting.

Ported from degachejs (the original JavaScript/TypeScript library), with the API redesigned to feel native to PHP rather than a direct translation.

Works with Laravel, Symfony, CodeIgniter, or plain PHP — the core package has no framework dependencies.

Requirements

Installation

Quick start

Every feature is available two ways:

  1. The Degache facade — one class, static methods, good for quick scripts or simple apps.
  2. Individual Validator/Formatter classes — better for dependency injection, testing, or when you only need one feature and want a smaller autoload footprint.

Both call the same underlying code — the facade just delegates.


Features

Phone number

Validates Tunisian mobile numbers and identifies the carrier (Ooredoo, Orange, Tunisie Telecom).

CIN (Carte d'Identité Nationale)

RIB / Banks

Validates a 20-digit Tunisian bank RIB and identifies the issuing bank.

Note: RIB validation checks structural format and that the bank code exists, but does not yet verify the RIB key checksum digit.

Car plate

Validates standard (123 تونس 4567) and special/RS (RS 123 تونس) Tunisian plates.

Postal code

Validates against the real map of ~680 Tunisian postal codes across all 24 governorates.

Tax ID (Matricule Fiscal)

Currency

Formats amounts as Tunisian Dinar using the ar-TN locale (via ext-intl).

Date

Formats dates using the ar-TN locale, with Maghrebi month names (e.g. جانفي, not يناير).


Design notes

Testing

Contributing

Issues and PRs welcome.

License

MIT


All versions of degache-php with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
ext-intl Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package amine-zhioua/degache-php contains the following files

Loading the files please wait ...