Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/oops-org-php/mysql-extension-wrapper
Wrapper for mysql extension
https://github.com/oops-org-php/mysql-extension-wrapper
Last synced: 2 months ago
JSON representation
Wrapper for mysql extension
- Host: GitHub
- URL: https://github.com/oops-org-php/mysql-extension-wrapper
- Owner: OOPS-ORG-PHP
- License: bsd-2-clause
- Created: 2016-01-17T19:39:49.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2024-04-12T18:07:37.000Z (9 months ago)
- Last Synced: 2024-11-01T06:18:21.613Z (3 months ago)
- Language: PHP
- Size: 45.9 KB
- Stars: 18
- Watchers: 7
- Forks: 11
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Wrapper for PHP mysql extension
===============================
[![GitHub license](https://img.shields.io/badge/license-BSD-blue.svg?style=plastic)](https://raw.githubusercontent.com/OOPS-ORG-PHP/mysql-extension-wrapper/master/LICENSE)The mysql-wrapper api support mysql extension api, and was designed to work best as with mysql extension.
If you have PHP7 environment and must need mysql extension api, this is good choise.## License
BSD 2-clause## Requirements
1. This wrapper api requires mysqli extension on PHP 4.1 and after
2. check with ***is_resource()*** about mysql link and mysql result, replace ***is_myresource()*** api. For example:
```php
```## Example
```php
user, $row->host);
}mysql_free_result($result);
mysql_close($con);?>
```## Composer
first, make composer.json as follow:
```json
{
"require": {
"joungkyun/mysql-extension-wrapper": "1.0.*"
}
}
```and, install ***mysql-extension-wrapper***
```bash
[user@host project]$ php composer.phpt install
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 1 install, 0 updates, 0 removals
- Installing joungkyun/mysql-extension-wrapper (1.0.1): Downloading (100%)
Writing lock file
Generating autoload files
[user@host project]$
```and, write code as follow:
```php
```
## Credits
JoungKyun.Kim