PHPackages                             andrevanzuydam/tina4store - 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. andrevanzuydam/tina4store

ActiveLibrary[Framework](/categories/framework)

andrevanzuydam/tina4store
=========================

Tina4 Store Module

211Twig

Since Mar 14Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/tina4stack/tina4-store)[ Packagist](https://packagist.org/packages/andrevanzuydam/tina4store)[ RSS](/packages/andrevanzuydam-tina4store/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

tina4-store
===========

[](#tina4-store)

An e-commerce store module for the Tina4 PHP framework. Provides product management, customer accounts, invoicing, and an admin dashboard that integrates with the Tina4 CMS.

Features
--------

[](#features)

- Product catalog with categories, attributes, images, pricing, and inventory
- Customer management with addresses, accounts, and authentication
- Document and ledger system for invoices and transactions
- Shopping cart
- Payment gateway integration (Paygate)
- Admin dashboard with product and customer grids
- Auto-migrating database schema on first use
- Registers as a Tina4 CMS menu item under "Store"

Installing
----------

[](#installing)

```
composer require andrevanzuydam/tina4store
```

### Requirements

[](#requirements)

- PHP &gt;= 8.1
- [tina4php](https://github.com/tina4stack/tina4-php) with routing support
- [tina4-cms](https://github.com/tina4stack/tina4-cms)
- A Tina4 database connection (configured in your `index.php`)

Usage
-----

[](#usage)

Add a database connection in your `index.php` before the store module loads:

```
require_once "vendor/autoload.php";

global $DBA;
$DBA = new \Tina4\DataSQLite3("store.db");

echo new \Tina4\Tina4Php();
```

The module auto-registers with Tina4 and runs database migrations on first use. Once loaded, the following routes are available:

RouteDescription`/store/dashboard`Store admin dashboard`/store/dashboard/landing`Dashboard landing page`/store/customers`Customer management grid`/store/products`Product management grid### ORM Objects

[](#orm-objects)

The module provides the following ORM objects:

ObjectDescription`Product`Products with code, description, cost/retail price, image, quantity`Customer`Customer accounts with contact details and authentication`Address`Customer addresses`Document`Invoices and transaction documents`DocumentDetail`Line items for documents`Ledger`Financial ledger entries (linked to products and customers)`Cart`Shopping cart`ProductCategory`Product categories`ProductAttribute`Product attributes`ProductImage`Product images`Paygate`Payment gateway integration### Working with Products

[](#working-with-products)

```
$product = new Product();
$product->productCode = "SKU-001";
$product->description = "Widget";
$product->costPrice = 5.00;
$product->retailPrice = 9.99;
$product->qty = 100;
$product->isActive = 1;
$product->save();
```

### Working with Customers

[](#working-with-customers)

```
$customer = new Customer();
$customer->firstName = "Andre";
$customer->lastName = "van Zuydam";
$customer->email = "andre@example.com";
$customer->isActive = 1;
$customer->save();

// Customers have related addresses, documents, and ledger entries
$customer->load("id = 1");
$addresses = $customer->addresses;
```

License
-------

[](#license)

MIT -- see [LICENSE](LICENSE) for details.

---

Our Sponsors
------------

[](#our-sponsors)

**Sponsored with 🩵 by Code Infinity**

[![Code Infinity](https://camo.githubusercontent.com/1516fb1662e3486bce77822177a5ea199edc32ea109369812592ec9bca38159a/68747470733a2f2f636f6465696e66696e6974792e636f2e7a612f77702d636f6e74656e742f75706c6f6164732f323032352f30392f6338652d6c6f676f2d6769746875622e706e67)](https://codeinfinity.co.za/about-open-source-policy?utm_source=github&utm_medium=website&utm_campaign=opensource_campaign&utm_id=opensource)

*Supporting open source communities • Innovate • Code • Empower*

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance58

Moderate activity, may be stable

Popularity5

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity11

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/d0aa360c2c86188df65e22920adc12e25f6158b55c15207d18804f7916c1f066?d=identicon)[andrevanzuydam](/maintainers/andrevanzuydam)

---

Top Contributors

[![andrevanzuydam](https://avatars.githubusercontent.com/u/6102941?v=4)](https://github.com/andrevanzuydam "andrevanzuydam (8 commits)")

---

Tags

cmsframeworkphpstoretina4

### Embed Badge

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

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

###  Alternatives

[laravel/telescope

An elegant debug assistant for the Laravel framework.

5.2k67.8M192](/packages/laravel-telescope)[spiral/roadrunner

RoadRunner: High-performance PHP application server and process manager written in Go and powered with plugins

8.4k12.2M84](/packages/spiral-roadrunner)[nolimits4web/swiper

Most modern mobile touch slider and framework with hardware accelerated transitions

41.8k177.2k1](/packages/nolimits4web-swiper)[laravel/dusk

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

1.9k36.7M259](/packages/laravel-dusk)[laravel/prompts

Add beautiful and user-friendly forms to your command-line applications.

708181.8M596](/packages/laravel-prompts)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.7M121](/packages/cakephp-chronos)

PHPackages © 2026

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