23/04
2015
dev-master
9999999-dev https://github.com/tonci/phonebookSimple phonebook application for PHP 5.5
The Requires
Simple phonebook application for PHP 5.5
Simple PhoneBook Application, (*1)
git clone https://github.com/tonci/phonebook phonebook
composer install
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;
Simple phonebook application for PHP 5.5