{"id":29040367,"url":"https://github.com/lcomeau01/twoowlscafe","last_synced_at":"2026-04-30T22:35:52.262Z","repository":{"id":297279919,"uuid":"996293012","full_name":"lcomeau01/twoOwlsCafe","owner":"lcomeau01","description":"Two Owls Cafe is a PHP-based practice project that dynamically displays a cafe menu, processes customer orders, and generates detailed receipts using a MySQL database.","archived":false,"fork":false,"pushed_at":"2025-06-04T19:12:34.000Z","size":20869,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-26T14:05:04.133Z","etag":null,"topics":["css","form-validation","html","html-css-javascript","javascript","php","sql","sql-database","sql-server"],"latest_commit_sha":null,"homepage":"https://2owls.lilcomeau.com/menu.php","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/lcomeau01.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,"zenodo":null}},"created_at":"2025-06-04T18:31:35.000Z","updated_at":"2025-06-04T19:12:37.000Z","dependencies_parsed_at":"2025-06-04T23:36:43.063Z","dependency_job_id":null,"html_url":"https://github.com/lcomeau01/twoOwlsCafe","commit_stats":null,"previous_names":["lcomeau01/twoowlscafe"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lcomeau01/twoOwlsCafe","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lcomeau01%2FtwoOwlsCafe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lcomeau01%2FtwoOwlsCafe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lcomeau01%2FtwoOwlsCafe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lcomeau01%2FtwoOwlsCafe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lcomeau01","download_url":"https://codeload.github.com/lcomeau01/twoOwlsCafe/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lcomeau01%2FtwoOwlsCafe/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262081117,"owners_count":23255662,"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":["css","form-validation","html","html-css-javascript","javascript","php","sql","sql-database","sql-server"],"created_at":"2025-06-26T14:05:03.814Z","updated_at":"2026-04-30T22:35:47.233Z","avatar_url":"https://github.com/lcomeau01.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🦉 Two Owls Cafe\n\nA PHP practice project that builds a simple cafe menu ordering system with dynamic menu display, order submission, and receipt generation.\n**Not Mobile / Window Responsive**\n\n## Files Overview\n\n### `menu.php`\n- Displays the cafe menu by fetching items dynamically from a MySQL database.\n- Shows item images, names, descriptions, and prices.\n- Allows customers to select quantities for multiple menu items.\n- Contains a form for customer details (first and last name) and special instructions.\n- Includes JavaScript validation to ensure at least one item is selected and customer name is entered.\n- Automatically sets a pickup time 20 minutes from order submission.\n\n### `process_order.php`\n- Processes the submitted order form.\n- Connects to the database to retrieve item names and prices based on selected quantities.\n- Calculates and displays an order receipt including:\n  - Order number (randomized)\n  - Pickup time\n  - Each item ordered with quantity and total price per item\n  - Overall total, tax, and total with tax\n  - Special instructions if provided\n- Thanks the customer by name.\n\n### `cache_header.php`\n- Prevents browser caching to ensure the website always loads the latest version.\n\n### `header.php`\n- Contains the website header, included in both `menu.php` and `process_order.php`.\n\n### `dbinfo.inc`\n- Stores database connection credentials (username, password, server, database name).\n\n## Features\n- Dynamic menu fetching from MySQL database.\n- Form input validation using JavaScript.\n- Order receipt generation with calculated totals and tax.\n- Handles special instructions from customers.\n- Responsive and styled with embedded CSS.\n- Uses PHP includes for modularity (`cache_header.php`, `header.php`, `dbinfo.inc`).\n\n## Technologies Used\n- PHP for server-side scripting.\n- MySQL for database management.\n- HTML/CSS for structure and styling.\n- JavaScript for form validation.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flcomeau01%2Ftwoowlscafe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flcomeau01%2Ftwoowlscafe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flcomeau01%2Ftwoowlscafe/lists"}