PHPackages                             martyd420/nette-starter - 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. martyd420/nette-starter

ActiveProject[Framework](/categories/framework)

martyd420/nette-starter
=======================

Nette Starter

v0.1.6(4mo ago)133MITPHPPHP &gt;= 8.2

Since Jan 17Pushed 3mo ago2 watchersCompare

[ Source](https://github.com/martyd420/nette-starter)[ Packagist](https://packagist.org/packages/martyd420/nette-starter)[ RSS](/packages/martyd420-nette-starter/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (30)Versions (5)Used By (0)

[![Dashboard](doc/screenshots/screenshot_1.png)](doc/screenshots/screenshot_1.png)

A web application skeleton built with **[Nette Framework](https://github.com/nette/nette)**, **[Nettrine](https://github.com/nettrine)** (Doctrine ORM for Nette), and **[Vite](https://github.com/vitejs/vite)**, featuring ready-to-use **user login/registration**, **translations** via **[contributte/translation](https://github.com/contributte/translation)** and **[contributte/datagrid](https://github.com/contributte/datagrid)**. This project comes pre-configured with **[Bootstrap 5](https://github.com/twbs/bootstrap)** and **[Tabler](https://github.com/tabler/tabler)** for a responsive administration UI.

Features
--------

[](#features)

- **Stack**: [Nette 3.2](https://github.com/nette/nette), PHP 8.2+, [Vite](https://github.com/vitejs/vite) (HMR + auto reload for Latte templates).
- **ORM**: [Doctrine 2](https://github.com/doctrine/orm) via [Nettrine](https://github.com/nettrine).
- **Auth**: Pre-configured user registration, login, and basic management example
- **Admin UI**: [Tabler Admin Dashboard](https://github.com/tabler/tabler) (Bootstrap 5) with a responsive layout.
- **DataGrid**: Powerful datagrid via [ublaboo/datagrid](https://github.com/ublaboo/datagrid) and [@contributte/datagrid](https://github.com/contributte/datagrid).
- **AJAX**: AJAX support via [Naja](https://naja.js.org/).
- **Translations**: Multi-language support using [contributte/translation](https://github.com/contributte/translation).
- **Assets**: Nette assets support with [Vite](https://github.com/vitejs/vite).
- **Tools**: PHP-CS-Fixer for code style, PHPStan for static analysis, Nette Tester for testing, and Tracy for debugging.
- **CLI**: Console support via [contributte/console](https://github.com/contributte/console).
- **Icons**: [Bootstrap Icons](https://icons.getbootstrap.com/) (CDN).
- **Forms**: Custom `BootstrapRenderer` and `BootstrapHorizontalRenderer` for easy Bootstrap 5 form rendering in administration.

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

[](#project-structure)

- `private/app`: PHP application logic (Presenters, Models, Services).
    - `Model`: Doctrine entities, repositories, and facades.
    - `Presentation`: Latte templates and Nette presenters.
- `private/config`: Configuration files (NEON).
- `private/lang`: Translation files.
- `private/assets`: Frontend source files (JS, CSS).
- `web`: Public directory (entry point, compiled assets).
- `tests`: Unit and integration tests.

Prerequisites
-------------

[](#prerequisites)

- **PHP** &gt;= 8.2
- **Node.js** &gt;= 20 (v22 recommended)
- **MySQL** or **MariaDB** database

Installation
------------

[](#installation)

1. **Install via Composer**

    ```
    composer create-project martyd420/nette-starter my-project
    cd my-project
    ```
2. **Install Frontend dependencies**

    ```
    nvm use 22
    npm install
    ```
3. **Database Configuration**

    Default configuration requires a local mysql/mariadb database `nsdb` (user: `nettestarter`, pass: `nettestarter123`). Use these credentials or override them in `private/config/local.neon`. Default database credentials are intended for **local development only**. See `private/config/local.neon.example` for reference.
4. **Initialize Database**

    Run the following command to create the schema and load default fixtures (admin user):

    ```
    composer db:reset
    ```
5. **Build Assets**For production build:

    ```
    npm run build
    ```

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

[](#development)

### 1. Start Frontend Server (Vite)

[](#1-start-frontend-server-vite)

This will start the Vite development server (usually on port 5173) with Hot Module Replacement (HMR).

```
npm run dev
```

### 2. Start Backend Server

[](#2-start-backend-server)

You can use the built-in PHP server or your preferred web server (Apache/Nginx/Docker). To use the built-in PHP server:

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

Access the application at: `http://localhost:8000`

### 3. Database Management

[](#3-database-management)

For further database changes during development, you can use Doctrine migrations or schema-tool via console:

```
# Generate migration
php private/cli/console.php migrations:diff

# Apply migrations
php private/cli/console.php migrations:migrate
```

Default Credentials
-------------------

[](#default-credentials)

The `composer db:reset` command creates a default administrator account - **development only credentials**:

- **Email:** `starter@pcdr.cz`
- **Password:** `123456`

Available Commands
------------------

[](#available-commands)

### Composer Scripts

[](#composer-scripts)

Defined in `composer.json`:

- `composer db:reset`: **Destructive!** Drops the database schema, clears cache, creates new schema, and loads fixtures.
- `composer cs:check`: Checks code style with PHP-CS-Fixer (dry-run).
- `composer cs:fix`: Automatically fixes code style with PHP-CS-Fixer.
- `composer phpstan`: Runs static analysis on `private/app`.
- `composer tester`: Runs unit/integration tests.
- `php private/cli/console.php`: Access to various Doctrine and system commands.

### NPM Scripts

[](#npm-scripts)

Defined in `package.json`:

- `npm run dev`: Starts the Vite development server.
- `npm run build`: Builds frontend assets for production (`web/assets/`).

### Screenshots

[](#screenshots)

[![Registration](doc/screenshots/screenshot_2.png)](doc/screenshots/screenshot_2.png)

[![User Edit](doc/screenshots/screenshot_3.png)](doc/screenshots/screenshot_3.png)

[![User Edit](doc/screenshots/screenshot_4.png)](doc/screenshots/screenshot_4.png)

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance78

Regular maintenance activity

Popularity9

Limited adoption so far

Community8

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

Total

4

Last Release

121d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

nette

###  Code Quality

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/martyd420-nette-starter/health.svg)

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

###  Alternatives

[nette/nette

👪 Nette Framework - innovative framework for fast and easy development of secured web applications in PHP (metapackage)

1.6k2.8M335](/packages/nette-nette)[nette/web-project

Nette: Standard Web Project

10991.8k](/packages/nette-web-project)

PHPackages © 2026

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