This repository has been archived by the owner on Mar 27, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added LICENSE and a better README.md Fixed composer.json
- Loading branch information
Showing
3 changed files
with
48 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,19 @@ | |||
Copyright (c) Arnold Daniels <arnold@jasny.net> | |||
|
|||
Permission is hereby granted, free of charge, to any person obtaining a copy | |||
of this software and associated documentation files (the "Software"), to deal | |||
in the Software without restriction, including without limitation the rights | |||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |||
copies of the Software, and to permit persons to whom the Software is furnished | |||
to do so, subject to the following conditions: | |||
|
|||
The above copyright notice and this permission notice shall be included in all | |||
copies or substantial portions of the Software. | |||
|
|||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | |||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | |||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | |||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | |||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | |||
THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,2 +1,11 @@ | |||
# DB # | Jasny's DB layer (for MySQL) | ||
A very simple class for using MySQL | ============================ | ||
|
|||
A simple DB layer in PHP for using MySQL, featuring | |||
|
|||
* Global connection (singleton) | |||
* Parameter binding | |||
* Quoting tables/fields and values | |||
* Fetch all rows, column, key/value pair and single value | |||
* Simple saving by passing associated arrays | |||
* Query exceptions (instead of returning false) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,12 +1,26 @@ | |||
{ | { | ||
"name": "jasny/db", | "name": "jasny/db-mysql", | ||
"description": "A simple DB layer in PHP for using MySQL", | |||
"keywords": ["database", "db", "mysql"], | |||
"version": "v1.0.0", | "version": "v1.0.0", | ||
"autoload": { | "license": "MIT", | ||
"psr-0": { | "authors": [ | ||
"DB": "src/" | { | ||
"name": "Arnold Daniels", | |||
"email": "arnold@jasny.net", | |||
"homepage": "http://www.jasny.net" | |||
} | } | ||
], | |||
"support": { | |||
"issues": "https://github.com/jasny/DB/issues", | |||
"source": "https://github.com/jasny/DB" | |||
}, | }, | ||
"require": { | "require": { | ||
"php": ">=5.3.0" | "php": ">=5.3.0" | ||
}, | |||
"autoload": { | |||
"psr-0": { | |||
"DB": "src/" | |||
} | |||
} | } | ||
} | } |