Download the PHP package simp/modal without Composer
On this page you can find all versions of the php package simp/modal. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Vendor simp
Package modal
Short Description This is package that will be standalone modal creations
License MIT
Package modal
Short Description This is package that will be standalone modal creations
License MIT
Please rate this library. Is it a good library?
Informations about the package modal
Simp Modal
This project demonstrates a lightweight PHP Modal system with CRUD operations, relations, and query building.
Table of Contents
- Installation
- Initializing Modals
- Inserting Records
- Selecting Specific Columns
- Relations
- User ↔ Role Relations
- Usage Examples
- Has One Relation (User -> Role)
- Has Many Relation (User -> Roles)
- Belongs To Relation (Role -> User)
- Complex Query Example
- Update Example
- Delete Example
- Migrations
- Create Migration
- Run Migrate
- Modify Migration
- Drop Tables
- Notes
Installation
Make sure your database is running and accessible. Update the database connection settings in example.php:
Initializing Modals
Clear tables before seeding:
Inserting Records
Selecting Specific Columns
Relations
User ↔ Role Relations
Diagram
Usage Examples
Has One Relation (User -> Role)
Has Many Relation (User -> Roles)
Belongs To Relation (Role -> User)
Complex Query Example
Update Example
Delete Example
Notes
- Select: Choose specific columns with
select(). - Where In / Or Where: Build complex queries with
whereIn()andorWhere(). - Relations: Use
hasOne,hasMany, andbelongsToto link modals. - Query Reset: Each query resets automatically after execution.
- Mass Assignment: Use
fill()for safe attribute assignment.
All versions of modal with dependencies
PHP Build Version
Package Version
The package simp/modal contains the following files
Loading the files please wait ...