PHPackages                             pocketphp/pocketphp - 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. [Framework](/categories/framework)
4. /
5. pocketphp/pocketphp

ActiveProject[Framework](/categories/framework)

pocketphp/pocketphp
===================

A lightweight and powerful PHP boilerplate for building web applications for small scale projects on shared hosting

02PHP

Since Nov 27Pushed 5mo agoCompare

[ Source](https://github.com/madfortech/PocketPHP)[ Packagist](https://packagist.org/packages/pocketphp/pocketphp)[ RSS](/packages/pocketphp-pocketphp/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

PocketPHP - A Lightweight PHP Boilerplate for Small-Scale Projects on Shared Hosting
====================================================================================

[](#pocketphp---a-lightweight-php-boilerplate-for-small-scale-projects-on-shared-hosting)

Note currently this boilerplate is under development not for production use
===========================================================================

[](#note-currently-this-boilerplate-is-under-development-not-for-production-use)

> **Note:** This is a proprietary PHP boilerplate created and maintained by [MadForTech](https://github.com/madfortech). All rights reserved.

PocketPHP is a lightweight, fast, and easy-to-use PHP boilerplate designed specifically for small-scale projects on shared hosting. It helps you build web applications quickly and efficiently.

✨ Key Features
--------------

[](#-key-features)

- 🚀 Fast and lightweight
- 🔐 Built-in Authentication System
- ✉️ Email Verification
- 🔄 MVC Architecture
- 🛣️ Simple Routing System
- 🔧 Easy Configuration
- 🔒 Secure by Default
- 📦 Composer Ready

📋 Requirements
--------------

[](#-requirements)

- PHP 8.2 or higher
- MySQL 5.7+ / MariaDB 10.3+
- Composer
- Apache/Nginx Web Server

🚀 Installation
--------------

[](#-installation)

You can create a new PocketPHP project using Composer:

```
currently not available
composer create-project pocketphp/pocketphp your-project-name
```

you can clone the repository and install dependencies

1. Clone the repository:

    ```
    git clone https://github.com/madfortech/PocketPHP.git
    cd PocketPHP
    ```
2. Install dependencies:

    ```
    composer install
    ```
3. Set up the `.env` file:

    ```
    cp .env.example .env
    ```

    Update the `.env` file with your database and application settings.

⚙️ Configuration
----------------

[](#️-configuration)

### Database Configuration

[](#database-configuration)

```
config/database.php

```

### Email Configuration (using Mailtrap as example)

[](#email-configuration-using-mailtrap-as-example)

```
MAIL_DRIVER=smtp
MAIL_HOST=sandbox.smtp.mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=your_mailtrap_username
MAIL_PASSWORD=your_mailtrap_password
MAIL_FROM_ADDRESS=from@example.com
MAIL_FROM_NAME="Your App Name"
MAIL_DEBUG=true
```

🛠️ Setup Database
-----------------

[](#️-setup-database)

1. Create a new MySQL database phpmyadmin
2. Import pocketphp.sql file into your database

🚦 Running the Application
-------------------------

[](#-running-the-application)

For development:

```
php -S localhost:8000 -t public
```

Or using the built-in server:

```
composer serve
```

Then open `http://localhost:8000` in your browser.

🛣️ Routing
----------

[](#️-routing)

Define your routes in `config/routes.php`:

```
// Basic Route
$router->addRoute('GET', '/', 'PocketPHP\Controller\WelcomeController@index');
```

📜 License
---------

[](#-license)

Copyright © 2025 [MadForTech](https://github.com/madfortech)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

🤝 Contributing
--------------

[](#-contributing)

1. Fork the repository
2. Create your feature branch (`git checkout -b feature/AmazingFeature`)
3. Commit your changes (`git commit -m 'Add some AmazingFeature'`)
4. Push to the branch (`git push origin feature/AmazingFeature`)
5. Open a Pull Request

📄 Documentation
---------------

[](#-documentation)

For more detailed documentation, please visit [PocketPHP Docs](#) (Coming Soon)

\#Credits

- phpmailer/phpmailer
- vlucas/phpdotenv

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance49

Moderate activity, may be stable

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity15

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/de3b70f1a6467b008afd0c77a52e4756f38d32fad1b4f5cb652c45857c428b12?d=identicon)[madfortech](/maintainers/madfortech)

---

Top Contributors

[![madfortech](https://avatars.githubusercontent.com/u/21261716?v=4)](https://github.com/madfortech "madfortech (5 commits)")

### Embed Badge

![Health badge](/badges/pocketphp-pocketphp/health.svg)

```
[![Health](https://phpackages.com/badges/pocketphp-pocketphp/health.svg)](https://phpackages.com/packages/pocketphp-pocketphp)
```

###  Alternatives

[laravel/passport

Laravel Passport provides OAuth2 server support to Laravel.

3.4k85.0M532](/packages/laravel-passport)[nolimits4web/swiper

Most modern mobile touch slider and framework with hardware accelerated transitions

41.8k177.2k1](/packages/nolimits4web-swiper)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k36.7M259](/packages/laravel-dusk)[laravel/prompts

Add beautiful and user-friendly forms to your command-line applications.

712181.8M596](/packages/laravel-prompts)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.7M121](/packages/cakephp-chronos)[laravel/pail

Easily delve into your Laravel application's log files directly from the command line.

91545.3M590](/packages/laravel-pail)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
