Download the PHP package larafony/skeleton without Composer
On this page you can find all versions of the php package larafony/skeleton. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download larafony/skeleton
More information about larafony/skeleton
Files in larafony/skeleton
Package skeleton
Short Description Larafony Framework Application Skeleton
License MIT
Informations about the package skeleton
Larafony Skeleton - Demo Application
Full-featured demo application for the Larafony Framework showcasing real-world usage patterns and best practices.
What's Included
This application demonstrates:
🗄️ Database & ORM
- Active Record ORM with relationship management
- belongsTo - Note → User relationship
- hasMany - User → Comments, Note → Comments
- belongsToMany - Note ↔ Tags (pivot table)
- Query Builder with fluent API
- Migrations using Schema Builder
- Seeders for demo data
🎨 Views & Templates
- Blade Template Engine with custom directives
- Components (Layout, Alert, InfoCard, StatusBadge)
- Slots for component composition
- @if, @foreach, @component directives
- Nested components with proper compilation
🔄 Data Handling
- Form Requests (DTOs) with automatic validation
- Type-safe data transfer using PHP 8.5 property hooks
- Union type support (string|array|null)
- Automatic hydration from HTTP requests
🛣️ Routing & Controllers
- Attribute-based routing -
#[Route('/path', 'METHOD')] - Controller base class with helpers (view, json, redirect)
- Automatic DTO injection via FormRequestAwareHandler
- RESTful API endpoints with JSON responses
💻 Console Commands
- Interactive setup command -
build:notes - Database connection testing
- Automatic migration runner
- Data seeding
⚙️ PHP 8.5 Features
- Property hooks for computed properties
- Asymmetric visibility -
public protected(set) - Attributes for routing and relationships
- Union types and null-safe operators
Installation
Setup
Run the interactive installation command:
The installer will:
- Check your database connection
- Prompt for database credentials if needed (interactive setup)
- Create the database if it doesn't exist
- Run all migrations
- Seed demo data (user, tags, notes)
Note: The command will automatically configure your .env file based on your input.
Development Server
Start the built-in PHP server:
Visit: http://localhost:8000/notes
Features Showcase
📝 Web Interface - /notes
The notes application demonstrates a complete CRUD workflow:
List Notes
- Displays all notes with user, tags, and comment count
- Shows relationship loading (N+1 prevention)
- Blade components for consistent UI
Create Note
- HTML form with validation
- Tag creation and attachment (many-to-many)
- DTO-based request handling
- Automatic tag parsing (comma-separated)
View Note Details
- Author information (belongsTo)
- All tags (belongsToMany)
- All comments (hasMany)
🔌 API Endpoints
GET /api/notes - List all notes with relations
POST /api/notes - Create new note
POST /api/comments - Add comment
💡 Code Examples
ORM Relationships with Attributes
DTO with Property Hooks
Controller with Automatic DTO Injection
Requirements
- PHP 8.5 or higher
- MySQL/PostgreSQL/SQLite
- Composer
License
MIT