PHPackages                             phpspa/phpspa - 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. phpspa/phpspa

ActiveProject[Framework](/categories/framework)

phpspa/phpspa
=============

PhpSPA Project Template

v1.1.5(5mo ago)1104MITPHP

Since Sep 6Pushed 5mo agoCompare

[ Source](https://github.com/dconco/phpspa-template)[ Packagist](https://packagist.org/packages/phpspa/phpspa)[ Docs](https://github.com/dconco/phpspa-template)[ Fund](https://www.buymeacoffee.com/dconco)[ GitHub Sponsors](https://github.com/dconco)[ RSS](/packages/phpspa-phpspa/feed)WikiDiscussions main Synced today

READMEChangelog (6)Dependencies (2)Versions (7)Used By (0)

PhpSPA Template
===============

[](#phpspa-template)

A simple, minimal template for building single-page applications with PHP using the [PhpSPA Framework](https://github.com/dconco/phpspa).

Quick Start
-----------

[](#quick-start)

```
composer create-project phpspa/phpspa MyApp
cd MyApp

composer start
```

Development
-----------

[](#development)

### With PHP Development Server

[](#with-php-development-server)

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

### With Apache

[](#with-apache)

1. Point your Apache document root to the `public/` directory
2. Or create a virtual host:

```

    DocumentRoot /path/to/project/public
    ServerName myapp.local

        AllowOverride All
        Require all granted

```

### With Tailwind CSS in Development

[](#with-tailwind-css-in-development)

To run with Tailwind CSS in watch mode (rebuilds CSS on changes):

```
npm run dev
```

Then in another terminal run either:

- `composer start` (PHP server)
- Or access via Apache at your configured domain

What's Included
---------------

[](#whats-included)

- **2 Simple Pages**: Home and About
- **Clean Layout**: Minimal HTML structure
- **Tailwind CSS**: For styling
- **Responsive**: Works on all devices

Project Structure
-----------------

[](#project-structure)

```
src/
├── index.php          # App entry point
├── layout/
    └── Layout.php     # Main layout
└── pages/
    ├── HomePage.php   # Home page
    └── AboutPage.php  # About page

```

Customize
---------

[](#customize)

1. Edit content in `pages/` files
2. Modify styles by updating Tailwind classes
3. Add new pages by creating new files and registering routes in `index.php`

That's it! Simple and ready to go.

---

Built with [PhpSPA Framework](https://phpspa.vercel.app)

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance70

Regular maintenance activity

Popularity12

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity40

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 ~25 days

Total

6

Last Release

171d ago

Major Versions

v0.1.1 → v1.1.22025-10-16

### Community

Maintainers

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

---

Top Contributors

[![dconco](https://avatars.githubusercontent.com/u/118613296?v=4)](https://github.com/dconco "dconco (18 commits)")

---

Tags

phpphpspatemplatephpframeworkphpspa

### Embed Badge

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

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

###  Alternatives

[laravel/framework

The Laravel Framework.

34.8k543.8M20.1k](/packages/laravel-framework)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[zemit-cms/core

Build Phalcon REST APIs faster with database-first scaffolding, model relationships, eager loading, identity, permissions, CLI, and WebSocket support.

148.5k1](/packages/zemit-cms-core)

PHPackages © 2026

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