PHPackages                             sadiq-bd/alkane-php - 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. sadiq-bd/alkane-php

ActiveProject

sadiq-bd/alkane-php
===================

The PHP Framework for easy and flexible Development (v2.1)

2.1.0(2y ago)211MITPHP

Since Jul 27Pushed 10mo ago1 watchersCompare

[ Source](https://github.com/sadiq-bd/alkane-php)[ Packagist](https://packagist.org/packages/sadiq-bd/alkane-php)[ RSS](/packages/sadiq-bd-alkane-php/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)DependenciesVersions (3)Used By (0)

 [![Repository Views](https://camo.githubusercontent.com/075b4bb3a240c232a36dd3f9c6ed2441ac61bb3407d27321366d7e8b94205b92/68747470733a2f2f6170692e73616469712e776f726b6572732e6465762f6170702f6769746875622f7265706f2f616c6b616e652d7068702f7669657773)](https://camo.githubusercontent.com/075b4bb3a240c232a36dd3f9c6ed2441ac61bb3407d27321366d7e8b94205b92/68747470733a2f2f6170692e73616469712e776f726b6572732e6465762f6170702f6769746875622f7265706f2f616c6b616e652d7068702f7669657773)

Alkane PHP v2.1
===============

[](#alkane-php-v21)

The lightweight, flexible PHP framework for rapid and robust development.

---

🚀 Features
----------

[](#-features)

- Minimal, expressive routing
- Simple, chainable database queries
- Powerful session management
- PSR-4 autoloading support
- Easy integration with Apache or Nginx
- Composer-ready

---

📦 Installation
--------------

[](#-installation)

```
composer create-project sadiq-bd/alkane-php

```

---

📝 Quick Start
-------------

[](#-quick-start)

### Routing

[](#routing)

```
use Core\Router;

// Basic route
Router::get('/', function() {
    return 'Hello World';
});

// Route with parameter
Router::get('/user/{id}', function($param) {
    return 'User ID - ' . $param['id'];
});

// Route with controller
Router::get('/home', App\Controller\HomeController::class, 'method');

```

---

### Database Querying

[](#database-querying)

```
$db = Core\Database::getInstance();
// or: $db = new Alkane\Database(?$custom_connection_name);

$sql = new Core\SqlQuery($db);
$sql->select(['ID', 'name', 'email'])
    ->from('table')
    ->where('ID = :id', ['id' => 20]);

$result = $sql->exec();
print_r($result->fetch(Core\SqlQuery::FETCH_ASSOC));

```

---

### Session Management

[](#session-management)

```
Core\SessionController::set('mail.smtp.host', 'smtp.gmail.com');
Core\SessionController::set('mail.smtp.user', 'user@gmail.com');
Core\SessionController::set('mail.smtp.password', 'your_password');

// Retrieve session data
print_r(Core\SessionController::get('mail.smtp'));

/* Output:
Array (
    [host] => smtp.gmail.com
    [user] => user@gmail.com
    [password] => your_password
)
*/

```

---

🌐 Web Server Configuration
--------------------------

[](#-web-server-configuration)

### Apache

[](#apache)

Add the following rewrite rules to your `.htaccess`:

```
RewriteEngine On
RewriteRule ^(.*)$ index.php [L,QSA]

ErrorDocument 400 /index.php
ErrorDocument 401 /index.php
ErrorDocument 403 /index.php
ErrorDocument 404 /index.php
ErrorDocument 500 /index.php
ErrorDocument 502 /index.php
ErrorDocument 503 /index.php

```

### Nginx

[](#nginx)

Paste this in your server block:

```
location / {
    rewrite ^(.*)$ /index.php?$1 last;
}

```

---

📚 Documentation
---------------

[](#-documentation)

Official documentation is coming soon. For now, see the example code above or explore the source!

---

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

[](#-contributing)

Pull requests and issues are welcome! For major changes, please open an issue first to discuss what you would like to change.

---

📄 License
---------

[](#-license)

This project is licensed under the MIT License.

---

💬 Contact
---------

[](#-contact)

- [Sadiq Ahmed](https://github.com/sadiq-bd)

---

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance39

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~192 days

Total

2

Last Release

833d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0491977a6415c27fea1d821fccaac0e6cf9429a446078ef6f5ab86f119d48c0f?d=identicon)[sadiq-bd](/maintainers/sadiq-bd)

---

Top Contributors

[![sadiq-bd](https://avatars.githubusercontent.com/u/72698818?v=4)](https://github.com/sadiq-bd "sadiq-bd (13 commits)")

---

Tags

frameworkphpphp-framework

### Embed Badge

![Health badge](/badges/sadiq-bd-alkane-php/health.svg)

```
[![Health](https://phpackages.com/badges/sadiq-bd-alkane-php/health.svg)](https://phpackages.com/packages/sadiq-bd-alkane-php)
```

PHPackages © 2026

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