2017 © Pedro Peláez
 

library php4noobs

A library to make simple PHP tasks even easier.

image

coderiekelt/php4noobs

A library to make simple PHP tasks even easier.

  • Saturday, June 18, 2016
  • by riekeltbrands291
  • Repository
  • 1 Watchers
  • 0 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

PHP4Noobs

The noob friendly PHP library., (*1)

What does it do?

PHP4Noobs aims to simplify common tasks within PHP such as writing to files, connecting to and using a database, etc., (*2)

How do I get it?

composer require coderiekelt/php4noobs, (*3)

What the hell is composer?

The package manager you need to install this PHP library., (*4)

What is a package manager?

Are you sure you are supposed to be doing PHP?, (*5)

Samples

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)

Standards

This library may or may not be PSR compliant, but then again it's for beginners so who gives a shit?, (*8)

The Versions

18/06 2016

dev-master

9999999-dev https://github.com/coderiekelt/PHP4Noobs/

A library to make simple PHP tasks even easier.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

database pdo mysql