Download the PHP package algeriany/libyan-guard without Composer
On this page you can find all versions of the php package algeriany/libyan-guard. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download algeriany/libyan-guard
More information about algeriany/libyan-guard
Files in algeriany/libyan-guard
Package libyan-guard
Short Description A Laravel package for validating and normalizing Libyan phone numbers and bank IBANs.
License MIT
Informations about the package libyan-guard
Libyan Guard
A Laravel package for validating, normalizing, and parsing Libyan phone numbers and local bank IBANs.
Introduction
Libyan Guard is a robust and developer-friendly Laravel package specifically designed to handle Libyan local data structures seamlessly. Whether you are building an e-commerce platform, a financial application, or any service targeting Libyan users, this package provides reliable tools for phone number formatting, network detection, and Libyan bank IBAN validation and parsing.
Installation
You can install the package via Composer. Run the following command in your terminal:
Note: The package utilizes Laravel Package Discovery, meaning the Service Provider and Facades are registered automatically. No manual registration is required.
Usage
1. Phone Numbers (LibyanPhone)
The LibyanPhone facade allows you to easily normalize local and international phone formats, validate numbers, and identify the network provider (Almadar Aljadeed or Libyana).
2. Bank Accounts (LibyanBank)
The LibyanBank facade parses Libyan IBAN details, extracts official bank names in Arabic and English, retrieves SWIFT codes, and validates the IBAN mathematically.
3. Validation Rules
You can integrate validation directly inside your Controllers or Form Requests using the built-in validation rules:
Contributing
Contributions are welcome! Please feel free to submit a Pull Request or open an issue on GitHub for any bugs, feature requests, or improvements.