{"id":24792724,"url":"https://github.com/misaghmomenib/phonebook-cpp","last_synced_at":"2026-04-30T18:31:37.002Z","repository":{"id":274005157,"uuid":"921565355","full_name":"MisaghMomeniB/PhoneBook-Cpp","owner":"MisaghMomeniB","description":"A Phone Book Application Built With C++, Designed to Efficiently Manage Your Contacts. This Project Includes Features Like Adding, Searching, Editing, and Deleting Contact Details. It's a Simple Yet Powerful Tool to Demonstrate C++ Fundamentals and Object-oriented Programming Concepts.","archived":false,"fork":false,"pushed_at":"2025-06-13T20:07:21.000Z","size":18,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-13T21:20:48.049Z","etag":null,"topics":["cpp","git","open-source","phonebook"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MisaghMomeniB.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-01-24T07:27:28.000Z","updated_at":"2025-06-13T20:07:24.000Z","dependencies_parsed_at":"2025-04-25T08:30:19.387Z","dependency_job_id":null,"html_url":"https://github.com/MisaghMomeniB/PhoneBook-Cpp","commit_stats":null,"previous_names":["misaghmomenib/phonebook-cpp"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/MisaghMomeniB/PhoneBook-Cpp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MisaghMomeniB%2FPhoneBook-Cpp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MisaghMomeniB%2FPhoneBook-Cpp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MisaghMomeniB%2FPhoneBook-Cpp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MisaghMomeniB%2FPhoneBook-Cpp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MisaghMomeniB","download_url":"https://codeload.github.com/MisaghMomeniB/PhoneBook-Cpp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MisaghMomeniB%2FPhoneBook-Cpp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32473804,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"ssl_error","status_checked_at":"2026-04-30T13:12:06.837Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cpp","git","open-source","phonebook"],"created_at":"2025-01-29T20:54:39.727Z","updated_at":"2026-04-30T18:31:36.997Z","avatar_url":"https://github.com/MisaghMomeniB.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 📇 PhoneBook (C++)\n\nA simple yet powerful **console‑based phone book application** in modern C++ (C++11+), allowing you to store, search, edit, and delete contact details with ease.\n\n---\n\n## 📋 Table of Contents\n\n1. [Overview](#overview)  \n2. [Features](#features)  \n3. [Tech Stack \u0026 Requirements](#tech-stack--requirements)  \n4. [Installation \u0026 Build](#installation--build)  \n5. [Usage Examples](#usage-examples)  \n6. [Code Structure](#code-structure)  \n7. [Persistence \u0026 File Format](#persistence--file-format)  \n8. [Extensibility \u0026 Tips](#extensibility--tips)  \n9. [Contributing](#contributing)  \n10. [License](#license)\n\n---\n\n## 💡 Overview\n\nThis application manages a simple phone book using a console menu interface. You can add, view, search, update, and delete contacts. It's a great foundation for learning file I/O, data structures, and modular C++ program design.\n\n---\n\n## ✅ Features\n\n- ➕ **Add contacts** with name, phone number, email, and (optional) address  \n- 🔍 **Search contacts** by name or part of name  \n- 📝 **Edit contacts** to update any field  \n- ❌ **Delete contacts** safely with confirmation  \n- 📄 **List all contacts** in tabular format  \n- 💾 **Persistent storage** via a JSON or CSV‑like file (e.g., `contacts.db`)  \n- 🔁 **Console menu** for easy navigation\n\n---\n\n## 🛠️ Tech Stack \u0026 Requirements\n\n- **C++11+** (compatible with g++, clang++, or MSVC)  \n- Uses `\u003cfstream\u003e`, `\u003cvector\u003e`, `\u003cstring\u003e`, `\u003cregex\u003e` from standard library  \n- No external dependencies or frameworks\n\n---\n\n## ⚙️ Installation \u0026 Build\n\n```bash\ngit clone https://github.com/MisaghMomeniB/PhoneBook-Cpp.git\ncd PhoneBook-Cpp\ng++ -std=c++11 -o phonebook src/*.cpp\n````\n\nOr, using CMake:\n\n```bash\nmkdir build \u0026\u0026 cd build\ncmake ..\nmake\n```\n\nRuns on:\n\n* **Linux/macOS**: `./phonebook`\n* **Windows**: `phonebook.exe`\n\n---\n\n## 🚀 Usage Examples\n\nOn startup:\n\n```\n=== PHONE BOOK ===\n1) Add Contact\n2) Search Contact\n3) Edit Contact\n4) Delete Contact\n5) List All Contacts\n6) Exit\nSelect option: \n```\n\n### Add Contact:\n\n```\nEnter name: Alice Smith\nEnter phone number: +1-555-1234\nEnter email: alice@example.com\nEnter address (optional): 123 Maple St\n✅ Contact added with ID 3\n```\n\n### Search:\n\n```\nSearch term: Alice\nFound:\nID: 3 | Name: Alice Smith | Phone: +1-555-1234 | Email: alice@example.com\n```\n\n### Edit:\n\n```\nEnter ID: 3\nNew name (current: Alice Smith): Alicia Smith\n...updates...\n✅ Contact updated.\n```\n\n---\n\n## 📁 Code Structure\n\n```\nPhoneBook-Cpp/\n├── src/\n│   ├── main.cpp        # Entry point + menu logic\n│   ├── PhoneBook.cpp   # Core class implementation\n│   ├── Contact.cpp     # Contact entity class\n│   └── utils.cpp       # File I/O \u0026 validation helpers\n├── include/\n│   ├── PhoneBook.hpp\n│   ├── Contact.hpp\n│   └── utils.hpp\n└── README.md           # This file\n```\n\n* `Contact` holds data fields \u0026 validation\n* `PhoneBook` manages contact list and CRUD operations\n* `utils` handles file read/write (JSON/CSV) and input checks\n\n---\n\n## 💾 Persistence \u0026 File Format\n\nContacts are saved to `contacts.db` (structured in JSON or CSV format):\n\n```json\n[\n  {\n    \"id\": 1,\n    \"name\": \"Alice Smith\",\n    \"phone\": \"+1-555-1234\",\n    \"email\": \"alice@example.com\",\n    \"address\": \"123 Maple St\"\n  },\n  ...\n]\n```\n\nUpon launch, it loads the file; changes are saved after operations.\n\n---\n\n## 🔧 Extensibility \u0026 Tips\n\n* 🗂️ Support multiple formats (XML, SQLite DB)\n* 🔒 Add grouping/tags (family, work, etc.)\n* 🕵️‍♂️ Add fuzzy search or phone/email validation via regex\n* 🌐 Add CSV import/export option\n* 📜 Architect GUI version later using Qt or ncurses\n\n---\n\n## 🤝 Contributing\n\nContributions welcome! To add features or improvements:\n\n1. Fork the repository\n2. Create a branch (`feature/...`)\n3. Document changes clearly\n4. Submit a Pull Request for review\n\n---\n\n## 📄 License\n\nLicensed under the **MIT License** — see `LICENSE` for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmisaghmomenib%2Fphonebook-cpp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmisaghmomenib%2Fphonebook-cpp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmisaghmomenib%2Fphonebook-cpp/lists"}