core-library
============

[![Github actions workflow status](https://img.shields.io/github/actions/workflow/status/webeweb/core-library/build.yml?style=for-the-badge&color2088FF&logo=github)](https://github.com/webeweb/core-library/actions)
[![Coveralls](https://img.shields.io/coveralls/github/webeweb/core-library/master.svg?style=for-the-badge&color=3F5767&logo=coveralls)](https://coveralls.io/github/webeweb/core-library?branch=master)
[![Packagist version](https://img.shields.io/packagist/v/webeweb/core-library.svg?style=for-the-badge&color=F28D1A&logo=packagist)](https://packagist.org/packages/webeweb/core-library)
[![Packagist license](https://img.shields.io/packagist/l/webeweb/core-library.svg?style=for-the-badge&colorF28D1A&logo=data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9Im5vbmUiIHN0cm9rZT0iI0ZGRiIgdmlld0JveD0iMCAwIDI0IDI0Ij48cGF0aCBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS13aWR0aD0iMiIgZD0ibTMgNiAzIDFtMCAwLTMgOWE1LjAwMiA1LjAwMiAwIDAgMCA2LjAwMSAwTTYgN2wzIDlNNiA3bDYtMm02IDIgMy0xbS0zIDEtMyA5YTUuMDAyIDUuMDAyIDAgMCAwIDYuMDAxIDBNMTggN2wzIDltLTMtOS02LTJtMC0ydjJtMCAxNlY1bTAgMTZIOW0zIDBoMyIvPjwvc3ZnPg==)](./LICENSE)

`core-library` contains some classes we re-use regularly into other packages or
projects.

Provides:

- Accounting models
- Billing models
- cURL wrapper
- Database connectors (Access, SQL Server, MySQL, etc.)
- FTP clients (FTP, FTPS, SFTP, etc.)
- Image utilities
- Logger models
- Maths helpers (Fibonacci, Luhn algorithm, Pascal's triangle, ROT13, ROT45, etc.)
- Planning utilities (time slots, etc.)
- Quadratus models
- Security classes (authenticator, password authentication, token generator, etc.)
- Serialization utilities
- SkiData utilities (card, customer, user, etc.)
- Sorting utilities (alphabetical tree sort, quick sort, etc.)
- System utilities (hard disk, memory, network, operating system, processor, etc.)
- Traits collection (array, boolean, double, float, integer, string, etc.)
- Types utilities (array, boolean, double, float, integer, string, etc.)
- Validation API (rule, rule set, validator, etc.)
- Vehicle models

If you like this package, pay me a beer (or a coffee)
[![paypal.me](https://img.shields.io/badge/paypal.me-webeweb-003087.svg?style=flat-square&logo=paypal)](https://www.paypal.me/webeweb)

## Compatibility

[![PHP](https://img.shields.io/packagist/php-v/webeweb/core-library.svg?style=for-the-badge&color=777BB4&logo=php)](http://php.net)

## Installation

Open a command console, enter your project directory and execute the following
command to download the latest stable version of this package:

```bash
composer require webeweb/core-library
```

This command requires you to have Composer installed globally, as explained in
the [installation chapter](https://getcomposer.org/doc/00-intro.md) of the
Composer documentation.

## Testing

To test the package, is better to clone this repository on your computer.
Open a command console and execute the following commands to download the latest
stable version of this package:

```bash
git clone https://github.com/webeweb/core-library.git
cd core-library
composer install
```

Once all required libraries are installed then do:

```bash
vendor/bin/phpunit
```

## License

`core-library` is released under the MIT License. See the bundled [LICENSE](LICENSE)
file for details.

## Donate

If you like this work, please consider donating at
[![paypal.me](https://img.shields.io/badge/paypal.me-webeweb-003087.svg?style=flat-square&logo=paypal)](https://www.paypal.me/webeweb)
