{"id":22051332,"url":"https://github.com/omar7tech/victoria-perfumes","last_synced_at":"2026-05-09T01:12:54.868Z","repository":{"id":264322809,"uuid":"893034970","full_name":"Omar7tech/victoria-perfumes","owner":"Omar7tech","description":" Victoria Perfumes is a beginner-friendly CRUD application built with PHP, MySQL, and Bootstrap. Manage perfumes, prices, and sales efficiently. Learn real-world web development concepts with dynamic forms, responsive design, and database integration.","archived":false,"fork":false,"pushed_at":"2024-11-23T11:47:43.000Z","size":75,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-28T21:33:43.637Z","etag":null,"topics":["begginer-friendly","crud","mysql","php"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Omar7tech.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2024-11-23T11:12:50.000Z","updated_at":"2024-11-23T11:48:43.000Z","dependencies_parsed_at":"2024-11-23T12:38:37.671Z","dependency_job_id":null,"html_url":"https://github.com/Omar7tech/victoria-perfumes","commit_stats":null,"previous_names":["omar7tech/simple-vanilla-php-crud-and-pos"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Omar7tech%2Fvictoria-perfumes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Omar7tech%2Fvictoria-perfumes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Omar7tech%2Fvictoria-perfumes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Omar7tech%2Fvictoria-perfumes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Omar7tech","download_url":"https://codeload.github.com/Omar7tech/victoria-perfumes/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245121453,"owners_count":20564130,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["begginer-friendly","crud","mysql","php"],"created_at":"2024-11-30T15:08:39.148Z","updated_at":"2026-05-09T01:12:54.843Z","avatar_url":"https://github.com/Omar7tech.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Victoria Perfumes - CRUD Application\n\nThe **Victoria Perfumes** application is a simple yet comprehensive CRUD (Create, Read, Update, Delete) system developed using **PHP** and **MySQL**. Designed for beginners, this project is a perfect introduction to PHP programming, database interactions, and web application development.\n\n---\n\n## Key Features\n\n- **User-Friendly Interface**  \n  Built with **Bootstrap** for a responsive and visually appealing design, ensuring compatibility across various devices.\n\n- **Complete CRUD Operations**  \n  Easily create, read, update, and delete records from the database.\n\n- **Dynamic Price Management**  \n  Add, edit, and delete perfume sizes and their respective prices.\n\n- **Sales Management**  \n  Record sales transactions, view statistics, and efficiently manage sales data.\n\n- **Modal Forms**  \n  Utilize **Bootstrap modals** for creating or editing entries without leaving the current page.\n\n- **Error Handling**  \n  Basic error-handling mechanisms ensure a smooth user experience and manage user inputs effectively.\n\n---\n\n## Technologies Used\n\n- **PHP**: Server-side scripting for application logic.\n- **MySQL**: Database management for storing and retrieving data.\n- **HTML/CSS**: For markup and styling of the user interface.\n- **Bootstrap**: Front-end framework for responsive web design.\n- **JavaScript**: Enhances user interaction and manages AJAX requests.\n\n---\n\n## Installation Guide\n\nFollow these steps to set up the Victoria Perfumes application locally:\n\n### 1. Clone the Repository\n```bash\ngit clone https://github.com/Omar7tech/victoria-perfumes.git\n```\n\n### 2. Set Up XAMPP\n- Download and install [XAMPP](https://www.apachefriends.org/index.html).\n- Start the **Apache** and **MySQL** services using the XAMPP Control Panel.\n\n### 3. Create the Database\n1. Open **phpMyAdmin** at `http://localhost/phpmyadmin`.\n2. Create a new database named `victoria`.\n3. Import the SQL file located in the `sql` directory of the cloned repository.\n\n### 4. Configure Database Connection\n1. Navigate to `inc/db.php` in the project directory.\n2. Update the database connection details (e.g., host, username, password) if necessary.\n\n### 5. Access the Application\n1. Place the cloned repository in the `htdocs` directory of your XAMPP installation.\n2. Open your web browser and navigate to:  \n   ```http\n   http://localhost/perfumes/index.php\n   ```\n\n---\n\n## Application Structure\n\n### Database Connection\n- **`inc/db.php`**: Establishes a connection to the MySQL database.\n\n### Landing Page\n- **`index.php`**: Displays available perfume sizes and their prices.\n\n### CRUD Operations\n- **Create**:  \n  Handled via `php/insert.php` and `php/insert_custom.php`.\n- **Read**:  \n  Retrieves data from the `sells` and `price` tables to display on the index and dashboard pages.\n- **Update**:  \n  Managed via `php/update_dash.php` and `php/edit_price.php`.\n- **Delete**:  \n  Executed with `php/delete_record.php` using AJAX for a seamless experience.\n\n### Settings Page\n- **`php/settings.php`**: Enables users to update perfume prices dynamically.\n\n### Dashboard\n- **`php/dashboard.php`**: Displays sales statistics and allows management of recorded sales.\n\n### Navigation\n- **`nav/index_nav.php`**  \n- **`nav/settings_nav.php`**  \n- **`nav/dash_nav.php`**  \n  Provide intuitive navigation across the application.\n\n---\n\n## CRUD Operations Explained\n\n### **Create**\nUsers can add new records for perfumes by filling out forms that capture the item name, price, and additional comments. These operations are implemented in `insert.php` and `insert_custom.php`.\n\n### **Read**\nThe application retrieves data from the `sells` and `price` tables using SQL queries and displays the information on the relevant pages.\n\n### **Update**\nUsers can update existing records via the edit modal. Pre-filled forms allow users to modify current data efficiently.\n\n### **Delete**\nRecords can be deleted directly from the dashboard using AJAX calls, offering a smooth, no-page-reload experience.\n\n---\n\n\n## Conclusion\n\nThe **Victoria Perfumes** application is an excellent learning tool for beginners diving into PHP and web development. By exploring its codebase, users will gain insights into:\n\n- Real-world application structure.\n- Database management techniques.\n- Implementation of CRUD operations.\n\nFeel free to contribute, customize, or use this project as a foundation for your own applications. Happy coding!\n\n---\n\n## License\n\nThis project is open-source and licensed under the [MIT License](LICENSE).\n\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fomar7tech%2Fvictoria-perfumes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fomar7tech%2Fvictoria-perfumes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fomar7tech%2Fvictoria-perfumes/lists"}