Skip to content

Commit d5b8731

Browse files
committed
Fixed composer.json
1 parent ead3981 commit d5b8731

3 files changed

Lines changed: 14 additions & 11 deletions

File tree

composer.json

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"name": "dhtml/dhtmlsql",
3-
"description": "DHTMLSQL - a modern and powerful PHP MySQLi Wrapper",
4-
"keywords": ["dhtmlsql", "php", "mysql","mysqli","database"],
53
"type": "library",
4+
"description": "An ultra-modern, advanced, compact and lightweight MySQL database wrapper library, built around PHP's MySQLi extension.",
5+
"keywords": ["mysqli", "mysql", "wrapper", "database", "db", "class", "library", "php"],
66
"homepage": "https://github.com/dhtml/dhtmlsql",
77
"license": "MIT",
88
"authors": [
@@ -16,14 +16,12 @@
1616
}
1717
],
1818
"require": {
19-
"php": ">=5.1.0"
19+
"php": ">=5.0.0"
2020
},
21+
"version": "2.9.0",
2122
"autoload": {
22-
"files": ["library/dhtmlsql.php"]
23-
},
24-
"extra": {
25-
"branch-alias": {
26-
"dev-master": "1.0.x-dev"
27-
}
23+
"classmap": [
24+
"library/dhtmlsql.php"
25+
]
2826
}
29-
}
27+
}

config.default.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
*/
55
require "library/dhtmlsql.php";
66

7+
$dhtmlsql=new DHTMLSQL();
8+
$db=$dhtmlsql->connect('localhost','admin','pass','dbtest');
9+
710
// Connection data (server_address, database, name, poassword)
811
$db=DHTMLSQL::connect('localhost','admin','pass','dbtest');
912

library/dhtmlsql.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1961,10 +1961,12 @@ public function halt($message) {
19611961
*/
19621962
public function __call($name, $arguments)
19631963
{
1964-
if(method_exists($this->connection,$name)) {$result=call_user_func_array(array($this->connection, $name),$arguments);}
1964+
if($name=='connect') {$result=call_user_func_array(array($this, 'connect'),$arguments);}
1965+
else if(method_exists($this->connection,$name)) {$result=call_user_func_array(array($this->connection, $name),$arguments);}
19651966
else if(method_exists($this->result,$name)) {$result=call_user_func_array(array($this->result, $name),$arguments);}
19661967
else {$result=null;}
19671968
if($name=='query') {$this->result=$result;}
1969+
19681970
return $result;
19691971
}
19701972

0 commit comments

Comments
 (0)