{"id":22261254,"url":"https://github.com/asrez/php-todo-list-api","last_synced_at":"2025-03-25T13:40:45.343Z","repository":{"id":265860140,"uuid":"871576883","full_name":"Asrez/php-todo-list-api","owner":"Asrez","description":"This project is a simple RESTful API for managing a to-do list. It is built using pure PHP and follows basic API development principles. The API provides functionality to create, read, update, and delete tasks.","archived":false,"fork":false,"pushed_at":"2024-10-12T14:39:54.000Z","size":1482,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-25T05:04:14.808Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Asrez.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-10-12T10:54:10.000Z","updated_at":"2024-10-13T16:19:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"86ad898f-732e-4556-8230-27ab7f0ca6bf","html_url":"https://github.com/Asrez/php-todo-list-api","commit_stats":null,"previous_names":["asrez/php-todo-list-api"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Asrez%2Fphp-todo-list-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Asrez%2Fphp-todo-list-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Asrez%2Fphp-todo-list-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Asrez%2Fphp-todo-list-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Asrez","download_url":"https://codeload.github.com/Asrez/php-todo-list-api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245472406,"owners_count":20621107,"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":[],"created_at":"2024-12-03T09:12:01.738Z","updated_at":"2025-03-25T13:40:45.332Z","avatar_url":"https://github.com/Asrez.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PHP To-Do List API\n\nThis project is a simple RESTful API for managing a to-do list. It is built using pure PHP and follows basic API development principles. The API provides functionality to create, read, update, and delete tasks.\n\n## Features\n\n- Create a new to-do item\n- Get a list of all to-do items\n- Update a specific to-do item\n- Delete a specific to-do item\n\n## Requirements\n\n- PHP 8.3\n- MySQL or any other database\n- Web server (Apache/Nginx)\n\n## Installation\n\nClone the repository:\n\n```bash\ngit clone https://github.com/Asrez/php-todo-list-api.git\n```\n\nNavigate to the project directory:\n\n```bash\ncd php-todo-list-api\n```\n\nConfigure the database connection by updating the database settings in config.php.\n\nImport the `todo_list.sql` file into your database to set up the table structure.\n\n## API Endpoints\n\n1. List All Tasks\n\nURL: /tasks\n\nMethod: GET\n\nResponse: List of all tasks in JSON format.\n\n2. Get a Single Task\n\nURL: /task/{id}\n\nMethod: GET\n\nResponse: JSON object of the task with the specified id.\n\n3. Create a Task\n\nURL: /task\n\nMethod: POST\n\nParameters:\n  - title: (string) Task title.\n  - description: (string) Task description.\n  - Response: JSON object of the created task.\n\n4. Update a Task\n\nURL: /task/{id}\n\nMethod: PUT\n\nParameters:\n  - title: (string) Task title.\n  - description: (string) Task description.\n\nResponse: JSON object of the updated task.\n\n5. Delete a Task\n\nURL: /task/{id}\n\nMethod: DELETE\n\nResponse: Success message in JSON format.\n\nCopyright 2024, asrez team\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasrez%2Fphp-todo-list-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fasrez%2Fphp-todo-list-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasrez%2Fphp-todo-list-api/lists"}