Download the PHP package s-damian/damian-php without Composer
On this page you can find all versions of the php package s-damian/damian-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download s-damian/damian-php
More information about s-damian/damian-php
Files in s-damian/damian-php
Package damian-php
Short Description The skeleton application for the Damian PHP Framework.
License MIT
Informations about the package damian-php
🛠️ 100% handcrafted code (no LLMs were used)
Damian PHP Framework - Skeleton
A powerful PHP Framework in PHP 8.5 - Beautiful code & Elegant syntax
SGBDR: Compatible with MySQL / MariaDB / PostgreSQL
Here you have the source codes of the skeleton.
The Framework kernel is in this package:
Damian PHP Framework - Kernel
Author
This Open Source Framework is developed by Stephen Damian
Getting Started
Requirements
- PHP
8.2||8.3||8.4||8.5
Create a new project
- You can create a new project via the
composer create-projectcommand:
Configuration
-
Create your
.envfile: - You have to configure the
.envfile.
Configuration - HTTP Server
- You have to configure your web server (Linux / Nginx or Apache / MySQL or PostgreSQL / PHP).
You have an example Nginx Vhost configuration in docs/nginx/vhost-example.conf file.
After configuring your HTTP server (Nginx), you can run these demo URLs
- http://www.your-domain.com
- http://www.your-domain.com/contact
- http://www.your-domain.com/blog
- http://www.your-domain.com/blog/slug-1
- http://www.your-domain.com/callable-example
- http://www.your-domain.com/sitemap
Documentation
- The documentation for this Framework is in
docs/DamianPhpfolder.
Syntax examples
Routing
An example of a route listing:
Retrieve a URL with the name of a route:
ORM (compatible with MySQL / MariaDB and PostgreSQL)
Active Record Pattern
Example to insert an article (using the setters magic methods):
Example to update an article (using the fill magic method):
Fetch multiple rows
Example using the when magic method:
ORM with Pagination
To paginate an item listing:
Pagination
Validation
Validation example (you can do method injection):
You can add custom validation rules. Example:
All versions of damian-php with dependencies
s-damian/damian-php-fw Version ^1.0
vlucas/phpdotenv Version 5.3.*
swiftmailer/swiftmailer Version 6.3.*