{"id":19091816,"url":"https://github.com/ramo4040/todo-list-application-php","last_synced_at":"2026-05-07T09:31:26.160Z","repository":{"id":237956578,"uuid":"795570480","full_name":"ramo4040/ToDo-List-application-PHP","owner":"ramo4040","description":"🚀 Simple ToDo List app built with PHP and JavaScript 🌟","archived":false,"fork":false,"pushed_at":"2024-05-05T22:56:55.000Z","size":6559,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-22T07:31:37.675Z","etag":null,"topics":["crud","javascript","php"],"latest_commit_sha":null,"homepage":"","language":"CSS","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/ramo4040.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}},"created_at":"2024-05-03T15:07:30.000Z","updated_at":"2024-05-05T22:56:58.000Z","dependencies_parsed_at":"2024-05-05T23:33:37.536Z","dependency_job_id":null,"html_url":"https://github.com/ramo4040/ToDo-List-application-PHP","commit_stats":null,"previous_names":["ramo4040/todo-list-application-php"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ramo4040/ToDo-List-application-PHP","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ramo4040%2FToDo-List-application-PHP","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ramo4040%2FToDo-List-application-PHP/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ramo4040%2FToDo-List-application-PHP/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ramo4040%2FToDo-List-application-PHP/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ramo4040","download_url":"https://codeload.github.com/ramo4040/ToDo-List-application-PHP/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ramo4040%2FToDo-List-application-PHP/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32731202,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-07T02:14:30.463Z","status":"ssl_error","status_checked_at":"2026-05-07T02:14:29.405Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["crud","javascript","php"],"created_at":"2024-11-09T03:17:05.869Z","updated_at":"2026-05-07T09:31:26.143Z","avatar_url":"https://github.com/ramo4040.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ToDo List Application (REST API)\n\nThis repository contains a ToDo List application built with native PHP and PDO for database interactions. The application implements user authentication (signup and sign-in) and CRUD functionalities for managing tasks.\n\n\n\u003cp align=\"center\"\u003e\n   \u003cimg src='public/images/1.png' width='410'\u003e \u003cimg src='public/images//2.png' width='410'\u003e\n   \u003cimg src='public/images/1.gif'\u003e\n\u003c/p\u003e\n\n## Features\n\n*   **User Authentication:**\n    *   Sign up with email and password\n    *   Sign in to access ToDo list functionalities\n*   **Task Management:**\n    *   Create new tasks\n    *   View list of all tasks\n    *   View individual task details\n    *   Edit existing tasks (using JavaScript PUT request)\n    *   Delete tasks (using JavaScript DELETE request)\n\n## Technical Details\n\n*   **Backend:** PHP (native)\n*   **Database:** Any database supported by PDO (MySQL, PostgreSQL, etc.)\n*   **Dependency Injection:** Implemented using a custom container for managing dependencies.\n*   **Routing:** Custom routing mechanism to map URLs to controllers and actions.\n*   **JavaScript:** Used for sending PUT and DELETE requests for task updates and deletions.\n\n## API Routes\n\nThe following table describes the available API routes:\n| Method | Route             | Controller         | Action    | Description                                                                      |\n| :----- | :---------------- | :----------------- | :-------- | :------------------------------------------------------------------------------- |\n| GET    | `/`               | HomeController     | index     | Renders the home page (landing page or task list - based on your implementation). |\n| GET    | `/signup`         | HomeController     | signup    | Renders the signup form.                                                         |\n| GET    | `/signin`         | HomeController     | signIn    | Renders the sign-in form.                                                        |\n| POST   | `/signup`         | UserController      | signup    | Processes user registration.                                                     |\n| POST   | `/signin`         | UserController      | signIn    | Processes user login.                                                            |\n| GET    | `/tasks`          | TodoController     | index     | Retrieves a list of all tasks for the authenticated user.                       |\n| GET    | `/task/{id}`      | TodoController     | getTask   | Retrieves details of a specific task by ID.                                      |\n| GET    | `/api/tasks`      | TaskService        | showAll   | Retrieves all tasks.                                                             |\n| GET    | `/api/task/{id}`  | TaskService        | getTask   | Retrieves details of a specific task by ID.                                      |\n| POST   | `/api/task`       | TodoController     | addTask   | Creates a new task.                                                              |\n| DELETE | `/api/task`       | TodoController     | deleteTask| Deletes a task (requires task ID in the request body).                           |\n| PUT    | `/api/task/{id}`  | TodoController     | editTask  | Updates an existing task.                                                        |\n\n## Installation and Setup\n\n1.  **Clone the repository:** `git clone https://github.com/ramo4040/ToDo-List-application-PHP.git`\n2.  **Configure database connection:** Update the database credentials in the `Database - Config` class.\n3.  **Run the application:** Use a PHP built-in server or configure a web server like Apache or Nginx.\n\n## Usage\n\n1.  Access the application in your browser. http://localhost/todo/\n2.  Sign up or sign in to access the ToDo list features.\n3.  Create, view, edit, and delete tasks as needed.\n\n## Contributing\n\nContributions are welcome! Please feel free to fork the repository and submit pull requests for bug fixes, improvements, or new features.\n\n## Contact\n\n\u003ca href=\"https://www.linkedin.com/in/yassir-rouane/\"\u003eLinkedin\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Framo4040%2Ftodo-list-application-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Framo4040%2Ftodo-list-application-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Framo4040%2Ftodo-list-application-php/lists"}