From fcaf68c7f14a36ebfd3226c9d568a906f27dd9d1 Mon Sep 17 00:00:00 2001 From: Arnold Daniels Date: Sat, 20 Oct 2012 03:54:00 +0200 Subject: [PATCH] Turn into proper project Added LICENSE and a better README.md Fixed composer.json --- LICENSE | 19 +++++++++++++++++++ README.md | 13 +++++++++++-- composer.json | 22 ++++++++++++++++++---- 3 files changed, 48 insertions(+), 6 deletions(-) create mode 100644 LICENSE diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..9a9270d --- /dev/null +++ b/LICENSE @@ -0,0 +1,19 @@ +Copyright (c) Arnold Daniels + +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. \ No newline at end of file diff --git a/README.md b/README.md index edbd0f9..bdde1e5 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,11 @@ -# DB # -A very simple class for using MySQL \ No newline at end of file +Jasny's DB layer (for 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) \ No newline at end of file diff --git a/composer.json b/composer.json index 09969b1..1d8a7cb 100644 --- a/composer.json +++ b/composer.json @@ -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", - "autoload": { - "psr-0": { - "DB": "src/" + "license": "MIT", + "authors": [ + { + "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": { "php": ">=5.3.0" + }, + "autoload": { + "psr-0": { + "DB": "src/" + } } } \ No newline at end of file