PHPackages                             webengine-blueprints/todo-list - 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. webengine-blueprints/todo-list

ActiveLibrary

webengine-blueprints/todo-list
==============================

Database-driven CRUD application.

12CSS

Since Mar 25Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/WebEngineBlueprints/todo-list)[ Packagist](https://packagist.org/packages/webengine-blueprints/todo-list)[ RSS](/packages/webengine-blueprints-todo-list/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

To do list
==========

[](#to-do-list)

[![Screenshot of a to-do list app made in WebEngine](screenshot.png)](screenshot.png)

A basic database-driven to-do list with CSS styling and no JavaScript.

This blueprint will help you get on the way with introducing a database and page interaction, and acts as a good learning tool.

To run: `composer install` to set up the project, `gt migrate` to create the database, `gt run` to start the server, then visit

The database
------------

[](#the-database)

This project uses an SQLite to persist its state, storing a `todo-list.sqlite` file in the project root. It is not built to be multi-user, so hosting this code online would mean that anyone can update the to-do list. Not too much work is required to add multi-user concurrency, but that's outside the scope of this blueprint.

There's only a single table `todo`, created in the `query/_migration/001-schema.sql` file (which can be executed using `gt migrate`).

The CRUD queries are stored in `query/todo` - there are only 4 query files: `create.sql`, `retrieve.sql`, `update.sql`, `delete.sql`.

The model
---------

[](#the-model)

Each record in the database is represented by an instance of `TodoItem`. This is handled by the `TodoList` class, which acts as a Repository, being constructed by the `ServiceLoader` with a reference to the database.

The page view and logic
-----------------------

[](#the-page-view-and-logic)

There is only one page: `index`. The `index.html` stores the view, which is mainly static, apart from the `` element that has the `data-list` attribute, indicating that it should be repeated for every item in the list.

The logic is stored in `index.php`. The `go()` function is executed every page view. Within the page there are `` elements that have their `name` attribute set to `do`. Clicking these buttons executes the corresponding `do_*()` functions in `index.php`.

Any classes that are required for the `go` and `do` functions to do their job are passed as parameters to the functions, and their construction is handled once in the `ServiceLoader`.

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance59

Moderate activity, may be stable

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity13

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/9e42344b91ce4b91ab57875969f67a0a6a48de570a08bc65d673b06b72fd3a3f?d=identicon)[g105b](/maintainers/g105b)

---

Top Contributors

[![g105b](https://avatars.githubusercontent.com/u/358014?v=4)](https://github.com/g105b "g105b (6 commits)")

### Embed Badge

![Health badge](/badges/webengine-blueprints-todo-list/health.svg)

```
[![Health](https://phpackages.com/badges/webengine-blueprints-todo-list/health.svg)](https://phpackages.com/packages/webengine-blueprints-todo-list)
```

PHPackages © 2026

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