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
Damian PHP Framework - Skeleton
A powerful PHP Framework in PHP 8.3 - Beautiful code & Elegant syntax
SGBDR: Compatible with MySQL / MariaDB / PostgreSQL
This Open Source Framework is developed by Stephen Damian
Here you have the source codes of the .
Kernel source code
The source codes for this Framework are in this package:
Damian PHP Framework - Kernel - [damian-php-fw]
Getting Started
Requirements
- PHP 8.1 || 8.2 || 8.3
Create a new project
- You can create a new project via the command:
Configuration
-
Create your file:
- You have to configure the file.
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 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 folder.
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 magic methods):
Example to update an article (using the magic method):
Fetch multiple rows
Example using the 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.*