- Introduction
- Features
- Setup Instructions
- Running the Application
- Running Tests
- Usage
- Contributing
- License
This is a T9 Phonebook application built with PHP and MySQL. It allows users to add and search for phonebook entries using a T9 predictive text search method.
- Add phonebook entries (lastname, firstname, phonenumber)
- Search entries using T9 predictive text input
Ensure you have the following software installed on your machine:
- PHP (version 8.3 or higher)
- Composer
- SQLite
- Git
-
Clone the repository:
git clone https://github.com/yourusername/phonebook.git cd phonebook
-
Install dependencies using Composer:
composer install
-
Create the database file:
touch database/phonebook.db
-
Run the setup script in your terminal to create the necessary tables:
php database/setup.php
-
Start the PHP built-in server:
php -S localhost:8000 -t public
-
Open your browser and navigate to
http://localhost:8000
.
-
Ensure the test database file is created:
touch database/testing.db
-
Run the tests using PHPUnit:
./vendor/bin/phpunit tests
- To add a phonebook entry, fill out the form on the main page and submit.
- To search for entries, use the T9 input method in the search form and submit.
This project is licensed under the MIT License. See the LICENSE file for details.