Download the PHP package jabarihunt/mysql without Composer
On this page you can find all versions of the php package jabarihunt/mysql. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jabarihunt/mysql
More information about jabarihunt/mysql
Files in jabarihunt/mysql
Package mysql
Short Description A simple class that handles MySQL database instances with support for both TCP and Socket connections. I created this class as a standard way to interact with MySQL databases from within other projects with very low overhead. I will personally use it as a dependency in those projects, but it's perfectly capable of being used as a standalone handler.
License MIT
Homepage https://github.com/jabarihunt/mysql
Informations about the package mysql
MySQL Handler
A simple class that handles MySQL database instances with support for both TCP and Socket connections. I created this class as a standard way to interact with MySQL databases from within other libraries with very low overhead, but it's perfectly capable of being used as a standalone handler.
Getting Started
Prerequisites
You will need to have the following environment variables present (usually done with a .env file):
Depending on how you load environment variables, you may be able to reference already defined variables when setting the required environment variables above. This helps prevent having to maintain values in multiple locations. For example:
Installing
Via Composer
Run the following command in the same directory as your composer.json file:
composer require jabarihunt/mysql
Via Github
-
Clone this repository into a working directory:
git clone [email protected]:jabarihunt/mysql.git
- Include or require the MySQL class in your project...
...or if using an auto-loader...
Usage
This class does not require instantiation since it uses the singleton design pattern for connections. You may simply begin using the available public methods. If none of the methods are called, a database connection is never created. You may alias the class as another name using use/as
, as demonstrated below:
Contributing
- Fork Repository
- Create a descriptive branch name
- Make edits to your branch
- Squash (rebase) your commits
- Create a pull request
License
This project is licensed under the MIT License - see the LICENSE.md file for details
All versions of mysql with dependencies
php Version >=8.0