Scaffold App for AsteriosPHP. AsteriosPHP is a simple and flexible PHP 8.+ framework, inspired from the best features of other frameworks, in a modern and elegant way.

Maintainers

Package info

github.com/asteriosframework/asterios-app

Homepage

Type:project

pkg:composer/asterios/app

Statistics

Installs: 60

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

2.1.0 2026-04-16 09:22 UTC

This package is not auto-updated.

Last update: 2026-04-16 09:24:39 UTC


README

AsteriosPHP scaffold

This repository contains the default scaffold for AsteriosPHP.
The source code for the framework itself can be found at asteriosframework/core.

composer create-project asterios/app

πŸš€ Getting Started

composer create-project asterios/app my-asterios-app
cd my-asterios-app
php -S localhost:8000

πŸ‘‰ That's it.
All frontend assets (Tailwind CSS) are automatically installed and built during composer install.

βš™οΈ Environment Configuration

On first install, Asterios automatically creates a .env file.

.env
.env.example
  • .env.example β†’ template committed to the repository
  • .env β†’ your local configuration (generated automatically)

πŸ‘‰ The .env file is created during:

php asterios install

You can safely modify your .env file for:

  • database credentials
  • app environment
  • custom configuration

πŸ“ Project Structure

app/                     # Application logic (Controllers, Services, etc.)
assets/css/              # Tailwind source files
cache/                   # Cache directory
config/                  # Configuration files
database/                # Migrations and seeders
logs/                    # Log files
public/                  # Public files
templates/               # Email templates
views/                   # Twig templates

🧠 App Layer

app/
β”œβ”€β”€ Contracts/          
β”œβ”€β”€ Controller/         
β”œβ”€β”€ Data/               
β”œβ”€β”€ Enums/              
β”œβ”€β”€ Exceptions/         
β”œβ”€β”€ Middleware/         
β”œβ”€β”€ Models/             
β”œβ”€β”€ Repositories/       
β”œβ”€β”€ Service/            
β”œβ”€β”€ Support/            
β”œβ”€β”€ Traits/             

🧰 Asterios CLI

AsteriosPHP ships with a built-in CLI tool.

From the project root, you can run commands directly.

Make sure the file is executable:

chmod +x asterios

Run commands via:

asterios <command>

No php prefix is required.

πŸ“Š System

asterios about
asterios list

πŸ—„ Database

asterios migrate
asterios migrate:status
asterios db:seed

πŸ§ͺ Test Data

asterios fake:bank
asterios fake:uuid

βš™οΈ Setup

asterios install

πŸ— Code Generation

asterios make:model
asterios make:migration
asterios make:seeder

πŸ–Ό View / Twig

php asterios view:cache
php asterios view:clear

🎨 Frontend (Tailwind CSS)

This project uses Tailwind CSS only.

πŸ“ Structure

assets/css/asterios-app.css
public/assets/css/asterios-app.css
tailwind.config.js

βš™οΈ Build Commands

Development (watch mode)

npm run dev

Production build

npm run build

πŸ” Via Composer

composer dev-assets
composer build-assets

πŸ€– Automatic Setup

On install/update:

  • npm install
  • npm run build

🧱 Twig Components

views/components/

Example:

{% include "components/button.twig" with { label: "Click me" } %}

🎨 Design System

Defined in:

assets/css/asterios-app.css

Example:

@layer components {
  .btn-primary {
    @apply inline-block px-8 py-3 rounded-full font-medium text-white 
           bg-gradient-to-br from-primary to-secondary 
           hover:opacity-90 transition;
  }
}

βš™οΈ Tailwind Config

tailwind.config.js

Example:

extend: {
  colors: {
    primary: "#0d6efd",
    secondary: "#20c997"
  }
}

πŸ’‘ Customize

Edit:

tailwind.config.js
assets/css/asterios-app.css

Add components:

views/components/*.twig

🧠 Philosophy

  • No Bootstrap
  • Tailwind only
  • Twig components
  • Clean architecture
  • Built-in CLI
  • Environment-based configuration
  • Zero-config setup via Composer

πŸ“¦ Requirements

  • PHP 8.3+
  • Node.js

❀️ AsteriosPHP

https://asteriosphp.de