dev-master
9999999-dev https://github.com/coderiekelt/PHP4Noobs/A library to make simple PHP tasks even easier.
MIT
The Requires
- php >=5.3.0
database pdo mysql
Wallogit.com
2017 © Pedro Peláez
A library to make simple PHP tasks even easier.
The noob friendly PHP library., (*1)
PHP4Noobs aims to simplify common tasks within PHP such as writing to files, connecting to and using a database, etc., (*2)
composer require coderiekelt/php4noobs, (*3)
The package manager you need to install this PHP library., (*4)
Are you sure you are supposed to be doing PHP?, (*5)
Simple usage of the database class, (*6)
$db = new PHP4Noobs\Database();
// Establish a connection
$db->connect("localhost", "username", "password", "database", $port=3306);
// Insert a row
$db->insert("users", "'username', 'password', 'email'", "'test', 'test', 'test'");
// Print some strings for all users
while($row = $db->fetchArray("users")) {
echo $row['username'] . "<br>";
}
// Close the database connection
$db->close();
There's nothing else in this library right now other than the Database class., (*7)
This library may or may not be PSR compliant, but then again it's for beginners so who gives a shit?, (*8)
A library to make simple PHP tasks even easier.
MIT
database pdo mysql