https://github.com/ricci69/ultimatemysql
MySQL database access wrapper compatible with PHP 8
https://github.com/ricci69/ultimatemysql
database mysql php
Last synced: about 1 year ago
JSON representation
MySQL database access wrapper compatible with PHP 8
- Host: GitHub
- URL: https://github.com/ricci69/ultimatemysql
- Owner: ricci69
- License: mit
- Created: 2022-10-26T14:09:11.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-01-28T14:43:45.000Z (over 2 years ago)
- Last Synced: 2025-04-23T21:48:36.257Z (about 1 year ago)
- Topics: database, mysql, php
- Language: PHP
- Homepage: https://ricci69.github.io/ultimatemysql/
- Size: 322 KB
- Stars: 3
- Watchers: 1
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# ultimatemysql
MySQL database access wrapper compatible with PHP 8
Based on the excellent work of Jeff Williams
https://www.phpclasses.org/package/3698-PHP-MySQL-database-access-wrapper.html
### Why this repository
Despite it is being used by fortune 500 companies [[source](https://www.phpclasses.org/discuss/package/3698/thread/72/)], the script isn't update since 16/08/2013 (almost 10 years!), so i thinked to create this repository with the aim of making it compatible with PHP 8, and being able to use it for another 10 years (i hope!).
## How to get started
It's a very simple database access wrapper, well documented and safe against SQL injection hacks!
You can start with only 3 lines!
### PHP Library
```php
QueryArray("SELECT * FROM Test");
?>
```
### Composer package
...OR if you want to include it as a composer package, just type:
```shell
composer require ricci69/ultimatemysql
```
and after use the following PHP code
```php
QueryArray("SELECT * FROM Test");
?>
```
### Debug mode
The script looks for a file called ```.debugmysql``` (within the root directory or within the composer's vendor / module folder) and, if found, enters debug mode.
When debug mode is active, it writes all SQL queries executed inside the ```.debugmysql``` file.
## How it work and examples
Check the "examples" directory to learn how it works, or read the very good documentation on https://ricci69.github.io/ultimatemysql
## Contributions
Feel free to contribute to this project adding more feature or fixing issues, but before submitting a pull request, make sure your code passes all unit tests (refer to the [/tests/coverage.md](/tests/coverage.md) document)
## Support this / me
If you liked this work, and you haven't wasted hours of work with this repository, you can think about supporting me with Ko-fi
[](https://ko-fi.com/P5P5FY846)