2017 © Pedro Peláez
 

application phonebook

Simple phonebook application for PHP 5.5

image

tonci/phonebook

Simple phonebook application for PHP 5.5

  • Thursday, April 23, 2015
  • by tonci
  • Repository
  • 1 Watchers
  • 1 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

phonebook

Simple PhoneBook Application, (*1)

How to install

  • Make sure you have web server installed with php version >= 5.5.*
  • Navigate to web accesible folder and execute: (if installing on linux, you may need to add "sudo" infront of every command)
git clone https://github.com/tonci/phonebook phonebook
composer install
  • Open config/db.php and setup a database
  • Run this SQL:
CREATE DATABASE IF NOT EXISTS `phonebook` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
USE `phonebook`;

CREATE TABLE IF NOT EXISTS `contacts` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` bigint(20) unsigned NOT NULL,
  `full_name` varchar(255) NOT NULL,
  `email` varchar(80) NOT NULL,
  `phone` varchar(20) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `user_id` (`user_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

CREATE TABLE IF NOT EXISTS `users` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `username` varchar(60) NOT NULL,
  `password` varchar(255) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `username` (`username`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

ALTER TABLE `contacts`
  ADD CONSTRAINT `fk_contacts_user` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

The Versions

23/04 2015

dev-master

9999999-dev https://github.com/tonci/phonebook

Simple phonebook application for PHP 5.5

  Sources   Download

The Requires