Skip to content

peanutbother/comTaskLib

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

comTaskLib

comTaskLib is a lightweight PHP library that is designed to eliminate the pain of writing code from scratch to peform basic tasks. These tasks, among others, include:

  • insertion.
  • deletion.
  • updating.
  • validity checking of user credentials.
  • basic string validation operations.

This library is designed using the Object Oriented Programming ("OOP") principle. It is flexible includes methods that are readily available to you.

##Application

comTaskLib aims to speed up programming and enable developers to get more things done in a shorter amount of time.

####Divisions, Installation, and Setting Up

This script has three files:

  1. config.php - use to configure the database:
  2. library.php - contains the instance of the libraryClass.php and the config. This class does not require any changes.
  3. libraryClass.php - contains the definition of all common functions

I have included a database that was used to test and yield the results for test.php. In order to set up testing, change the username and password and host in config.php and upload the database included here to your server. More functionality will be added in future releases.

#Usage You may use the following function to test the connection:

<?php

include('library.php');//required

/*-------------------------------------------------------
  this is an example of how to use the connection method
  The parameter $connection is a PDO connection 
  -----------------------------------------------------*/
  
if($library->connectionStatus($connection))
{
echo 'Connection Status :passed!';
}
else
{
echo 'Connection Status :failed';
}

Remember that it is important to call out to the library as follows:

$library->someMethod()

#Contributing Feel free to provide feedback or report any bugs.

About

a library to execute the common task instead of writing the code from scratch every time we need them

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%