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

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

knapsack/knapsack
=================

Knapsack WordPress starter theme

0.0.2(3y ago)010MITPHPPHP ^7.4|^8.0

Since Apr 5Pushed 2y ago2 watchersCompare

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

READMEChangelogDependencies (6)Versions (3)Used By (0)

[![Latest Version on Packagist](https://camo.githubusercontent.com/6ca55b197aebf149978a825d2cc03e6a50498d25c3f45b9e86eb05baf56f734f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6b6e61707361636b2f6b6e61707361636b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/knapsack/knapsack)[![Total Downloads](https://camo.githubusercontent.com/d0ed2f00b9f9c2f9b36b0ddd1346bf4e09393cc3951dd52c83c747654c2a6177/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6b6e61707361636b2f6b6e61707361636b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/knapsack/knapsack)

Vagebond Knapsack
=================

[](#vagebond-knapsack)

This is a WordPress starter kit and can be used to kickstart your theme development.

1: Installation
---------------

[](#1-installation)

composer create-project knapsack/knapsack your-theme-name

2: Adding templates
-------------------

[](#2-adding-templates)

Knapsack uses the Knapsack router to map templates to views. Open up the `routes/templates.php` file and add your routes.

```
$router->template('my template name', function () {
    echo 'Hello world!'
});
```

You can also add a template with a view.

```
$router->template('my template name', function () {
    echo vgb_view('my-view');
});
```

But the most common way is to use a controller.

```
$router->template('my template name', [MyController::class, 'myMethod']);
```

Configuration
-------------

[](#configuration)

Knapsack works out of the box, but you can configure it to your needs. By default, the theme looks for a `app.ts` files in the `resources/assets/ts/app.ts` location. You can change this in the `bootstrap/theme/assets.php` file. (will be moved to config file)

The `bootstrap/theme/settings.php` contains the defaults for your Theme, like `theme_support` and other settings.

Blade
-----

[](#blade)

Vite
----

[](#vite)

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

[](#development)

Testing
-------

[](#testing)

\[not yet implemented\]

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

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

Total

2

Last Release

1138d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/022e09c22f098cde82ba4e5c8fd861cdd978ae019b1228ac7de60ead6bcaec4c?d=identicon)[vagebond](/maintainers/vagebond)

---

Top Contributors

[![mxaGianluca](https://avatars.githubusercontent.com/u/1021708?v=4)](https://github.com/mxaGianluca "mxaGianluca (33 commits)")

###  Code Quality

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[mrgoon/aliyun-sms

阿里云短信服务php调用代码

8292.9k](/packages/mrgoon-aliyun-sms)[carrooi/nette-menu

Menu control for Nette framework

2950.0k1](/packages/carrooi-nette-menu)[askvortsov/flarum-auto-moderator

Powerful automation engine.

1418.4k2](/packages/askvortsov-flarum-auto-moderator)

PHPackages © 2026

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