Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mrcrypster/mysqly
Full-featured opensource small-overhead PHP data framework for Mysql built for fast and efficient development
https://github.com/mrcrypster/mysqly
cache cache-storage database job-queue key-value mysql mysql-cache opensource pdo pdo-mysql php php-database php-key-value-store sql stored-procedures
Last synced: 23 days ago
JSON representation
Full-featured opensource small-overhead PHP data framework for Mysql built for fast and efficient development
- Host: GitHub
- URL: https://github.com/mrcrypster/mysqly
- Owner: mrcrypster
- License: mit
- Created: 2021-06-18T10:18:39.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-10-23T12:38:46.000Z (about 1 year ago)
- Last Synced: 2024-10-03T13:22:03.236Z (about 1 month ago)
- Topics: cache, cache-storage, database, job-queue, key-value, mysql, mysql-cache, opensource, pdo, pdo-mysql, php, php-database, php-key-value-store, sql, stored-procedures
- Language: PHP
- Homepage: https://mysqly.com
- Size: 135 KB
- Stars: 25
- Watchers: 3
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[Mysqly](https://mysqly.com/) is a full-featured opensource small-overhead PHP data framework for Mysql built for fast and efficient development.
- [Official website](https://mysqly.com/)
- [Advanced Mysql knowledge base](https://mysqly.com/educate)# Install
```bash
wget https://mysqly.com/mysqly.php
```# Usage example
```php
require 'mysqly.php'; # include library (single file)
mysqly::auth('user', 'pwd', 'db', '127.0.0.1'); # connect to Mysql server// Dynamic methods for table names
$users = mysqly::users(['age' => 25]); # SELECT * FROM users WHERE age = 25
$user = mysqly::users_(6); # SELECT * FROM users WHERE id = 6 LIMIT 1// And many more features ↓
```# All features & documentation
- Procedural style implementation
- Single static class in a single file
- PDO based - single dependancy
- Lazy connection to optimize resources usage
-
Simplified parametric queries for frequent use cases -
Lists and key-value pairs retrieval -
Dynamic methods for less code -
Native SQL support - Secure values binding
-
"IN" array values binding support -
JSON retrieval and attributes manipulation - "Server has gone away" automatic reconnection
- Multiple DB/server connections
-
Automatic fields/tables creation mode -
Key-value storage component -
Job queue component -
Cache storage with TTL support component -
CSV/TSV export -
Increment and decrement column values atomically -
Transactions support - Mysql bit column type support
- INSERT/REPLACE support for single and batched values
[![Download mysqly](https://img.shields.io/sourceforge/dt/mysqly.svg)](https://sourceforge.net/projects/mysqly/files/latest/download)