PHPackages                             modernman00/shared-lib - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. modernman00/shared-lib

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

modernman00/shared-lib
======================

Shared library for common functions and classes across projects

v1.9.1(1w ago)0117[12 PRs](https://github.com/modernman00/shared-lib/pulls)MITPHPCI passing

Since May 28Pushed 2w agoCompare

[ Source](https://github.com/modernman00/shared-lib)[ Packagist](https://packagist.org/packages/modernman00/shared-lib)[ RSS](/packages/modernman00-shared-lib/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (10)Dependencies (197)Versions (383)Used By (0)

Shared Library
==============

[](#shared-library)

[![CI/CD Pipeline](https://github.com/modernman00/shared-lib/actions/workflows/ci.yml/badge.svg)](https://github.com/modernman00/shared-lib/actions/workflows/ci.yml)[![PHP Version](https://camo.githubusercontent.com/138b5a1f19bb070beed29c5fb32fe089fd00df6ee87b744ec8fbe07d7885bb15/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e31253230253743253230382e32253230253743253230382e332d626c7565)](https://www.php.net/)[![License](https://camo.githubusercontent.com/f8df3091bbe1149f398a5369b2c39e896766f9f6efba3477c63e9b4aa940ef14/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d677265656e)](LICENSE)[![Latest Version](https://camo.githubusercontent.com/9f672519ab01c989f4eca7dc0d3a786b561a2dd7b2968a0a49ca0b976934baa3/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f6d6f6465726e6d616e30302f7368617265642d6c6962)](https://github.com/modernman00/shared-lib/releases)

A comprehensive PHP shared library containing common functions and classes for use across multiple projects.

Features
--------

[](#features)

- **Authentication &amp; Security**: JWT handling, secure sessions, token management
- **Database Operations**: PDO utilities, query builders, database helpers
- **Form Building**: Bootstrap and Bulma form builders
- **File Management**: Upload handling, image optimization, virus scanning
- **Email Services**: PHPMailer integration, email templates
- **Validation &amp; Sanitization**: Input validation, data sanitization
- **Rate Limiting**: Request throttling and rate limiting
- **Logging**: Monolog integration for structured logging
- **Exception Handling**: Custom exception classes

Installation
------------

[](#installation)

Install via Composer:

```
composer require waleolaogun/shared-lib
```

Requirements
------------

[](#requirements)

- PHP 8.1 or higher
- Composer for dependency management

Usage
-----

[](#usage)

### Basic Example

[](#basic-example)

```
