{"id":21429163,"url":"https://github.com/aandersonsantos/library-system","last_synced_at":"2026-05-18T22:09:49.323Z","repository":{"id":260542844,"uuid":"881587086","full_name":"AAndersonSantos/Library-System","owner":"AAndersonSantos","description":"API Library-System","archived":false,"fork":false,"pushed_at":"2024-11-01T05:35:24.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-23T08:16:43.490Z","etag":null,"topics":["php","sqlite"],"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/AAndersonSantos.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-10-31T21:40:53.000Z","updated_at":"2024-11-01T05:35:27.000Z","dependencies_parsed_at":"2024-10-31T23:23:56.317Z","dependency_job_id":"dec2c522-df1e-432a-939f-855b31ca1ccf","html_url":"https://github.com/AAndersonSantos/Library-System","commit_stats":null,"previous_names":["aandersonsantos/library-system"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AAndersonSantos%2FLibrary-System","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AAndersonSantos%2FLibrary-System/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AAndersonSantos%2FLibrary-System/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AAndersonSantos%2FLibrary-System/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AAndersonSantos","download_url":"https://codeload.github.com/AAndersonSantos/Library-System/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243940062,"owners_count":20372044,"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":["php","sqlite"],"created_at":"2024-11-22T22:15:55.165Z","updated_at":"2026-05-18T22:09:44.288Z","avatar_url":"https://github.com/AAndersonSantos.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eLibrary System\u003c/h1\u003e\n\nA library management system developed in PHP.\n\n## Table of Contents\n\n- [Description](#description)\n- [Requirements](#requirements)\n- [Cloning the Repository](#cloning-the-repository)\n- [Installing Dependencies](#installing-dependencies)\n- [Running Unit Tests](#running-unit-tests)\n\n## Description\n\nThe Library System is a project that allows for the simple and efficient management of books and users. The system provides functionalities to add, list, and remove books and users.\n\n## Requirements\n\nBefore you begin, you will need to have the following installed on your system:\n\n- PHP 8.0 or higher\n- Composer\n- PDO (for database access)\n- SQLite (the project uses an SQLite database)\n\n## Cloning the Repository\n\nTo clone this repository, open the terminal and run the following command:\n\n```bash\ngit clone https://github.com/AAndersonSantos/Library-System.git\n```\n\n## Installing Dependencies\n\nNavigate to the project directory and run the following command to install the required dependencies:\n\n```bash\ncd library-system\ncomposer install\n```\n\n## Database Setup\n\nThe project uses an SQLite database. To set it up, follow these steps:\n\n1. Create a file named database.sqlite inside the src folder.\n2. Ensure that the file has read and write permissions.\n\n## Running the Project\n\nTo start the built-in PHP server and run the project, use the following command:\n\n```bash\nphp -S localhost:8000 -t src\n```\n\n## Running Unit Tests\n\nTo run the unit tests for the project, use PHPUnit. Make sure you are in the project directory and run the following command:\n\n```bash\nvendor/bin/phpunit tests\n```\n\nThe tests will be executed, and you will see the results in the terminal.\n\n## Endpoints\n\nYou can access the following endpoints to test the routes using Postman or any API testing tool:\n\nBooks:\n\n    GET: http://localhost:8000/index.php/livros\n\n    POST: http://localhost:8000/index.php/livros\n\n    PUT: http://localhost:8000/index.php/livros/{id}\n\n    DELETE: http://localhost:8000/index.php/livros/{id}\n\nUsers:\n\n    GET: http://localhost:8000/index.php/usuarios\n\n    POST: http://localhost:8000/index.php/usuarios\n\n    PUT: http://localhost:8000/index.php/usuarios/{id}\n\n    DELETE: http://localhost:8000/index.php/usuarios/{id}\n\nLoans:\n\n    POST: http://localhost:8000/index.php/emprestimos\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faandersonsantos%2Flibrary-system","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faandersonsantos%2Flibrary-system","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faandersonsantos%2Flibrary-system/lists"}