PHPackages                             aarkin/archphp - 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. aarkin/archphp

ActiveProject[Framework](/categories/framework)

aarkin/archphp
==============

A Lightweight PHP Framework for Seamless Templating &amp; Routing

06PHP

Since Jul 22Pushed 11mo ago1 watchersCompare

[ Source](https://github.com/MKashanButt/ARCHphp)[ Packagist](https://packagist.org/packages/aarkin/archphp)[ RSS](/packages/aarkin-archphp/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

📂 Folder Structure
------------------

[](#-folder-structure)

```
root/
│── assets/
│   ├── images/
│   ├── css/
│   │   ├── app.css
│   ├── js/
│   │   ├── app.js
│── components/
│── views/
│── env.example
│── index.php
│── template.php

```

🛠 Setting Up Environment Variables
----------------------------------

[](#-setting-up-environment-variables)

To use environment variables, create an env.php file and define your variables like this:

```
putenv("APPNAME=Squad International");
putenv("STYLESHEETDIR=assets/css/");
```

You can add multiple variables by calling putenv() for each one.

❓ Why use env.php instead of .env?
----------------------------------

[](#-why-use-envphp-instead-of-env)

Currently, .env files are not loading properly in some cases. Until this issue is resolved, env.php is used as a workaround.

If you prefer .env, you can manually load it using phpdotenv.

📌 View File Format
------------------

[](#-view-file-format)

By default, views use .html files. However, you can use .php or any other format by modifying index.php.

🚀 Stack
-------

[](#-stack)

Currently this uses just plain html, css and php because it was designed to be very light weight while being helpfull in cases where you dont want redundant html like header and footer. So instead of putting header and footer on each page this helps create a template file which you can design. This also takes care of routing for you. Since having a url like `xyz.com/about-us.html ` dosent give a good look. So this comes with dynamic routing to remove extension names from the url. Also the css files get loaded for each page automatically. If you name the file the same as the filename other than view/index since it by defaults loads home.css orhter than that the view/filename should be the file name for css/filename

🔮 Future
--------

[](#-future)

This is currenctly in development and will be managed by me. Features will be added according to real-world senarios that I come accross in projects while using this framework

###  Health Score

16

—

LowBetter than 4% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity14

Early-stage or recently created project

 Bus Factor1

Top contributor holds 50% 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/67797c90ea6311e27a58bb5feabfcb05c5d9e3502f1768260cac078982adf1b1?d=identicon)[MKashanButt](/maintainers/MKashanButt)

---

Top Contributors

[![ARK-56](https://avatars.githubusercontent.com/u/164230790?v=4)](https://github.com/ARK-56 "ARK-56 (57 commits)")[![MKashanButt](https://avatars.githubusercontent.com/u/164230790?v=4)](https://github.com/MKashanButt "MKashanButt (57 commits)")

### Embed Badge

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

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

###  Alternatives

[laravel/dusk

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

1.9k39.6M297](/packages/laravel-dusk)[nineinchnick/edatatables

Grid widget for the Yii Framework, wrapper for the DataTables jQuery plugin

173.2k](/packages/nineinchnick-edatatables)[link-cloud/fast-hyperf

LinkCloud Fast Hyperf

241.2k1](/packages/link-cloud-fast-hyperf)

PHPackages © 2026

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