{"id":17675928,"url":"https://github.com/afgprogrammer/php-mvc-book-library","last_synced_at":"2025-07-29T11:09:54.119Z","repository":{"id":52190335,"uuid":"144672825","full_name":"afgprogrammer/PHP-MVC-book-library","owner":"afgprogrammer","description":"book library rest-api in PHP MVC","archived":false,"fork":false,"pushed_at":"2018-11-29T16:01:58.000Z","size":36,"stargazers_count":30,"open_issues_count":0,"forks_count":6,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-11-02T13:20:22.834Z","etag":null,"topics":["php","rest-api"],"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/afgprogrammer.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}},"created_at":"2018-08-14T05:30:06.000Z","updated_at":"2024-06-13T01:08:04.000Z","dependencies_parsed_at":"2022-08-03T15:19:34.947Z","dependency_job_id":null,"html_url":"https://github.com/afgprogrammer/PHP-MVC-book-library","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afgprogrammer%2FPHP-MVC-book-library","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afgprogrammer%2FPHP-MVC-book-library/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afgprogrammer%2FPHP-MVC-book-library/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afgprogrammer%2FPHP-MVC-book-library/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/afgprogrammer","download_url":"https://codeload.github.com/afgprogrammer/PHP-MVC-book-library/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223835371,"owners_count":17211158,"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","rest-api"],"created_at":"2024-10-24T07:23:53.845Z","updated_at":"2024-11-09T14:02:29.774Z","avatar_url":"https://github.com/afgprogrammer.png","language":"PHP","readme":"\n\u003ch2 align=\"center\" \u003eIn The Name Of Allah\u003c/h2\u003e\n\n# Book Rest API\n\nThis project is for searching books with rest API in PHP.\n\n## Setup\n\n### Step 1 - Clone or Download\n\n```\ngit clone https://github.com/afgprogrammer/php-books-library.git\n\n```\n\n### Step 2 - Change Config File\n\nPlease open config.php file and find this code section.\n```PHP\n  // Config Database\ndefine('DATABASE', [\n    'Port'   =\u003e '3306',\n    'Host'   =\u003e 'localhost',\n    'Driver' =\u003e 'PDO',\n    'Name'   =\u003e '',\n    'User'   =\u003e '',\n    'Pass'   =\u003e '',\n    'Prefix' =\u003e ''\n]);\n\n// DB_PREFIX\ndefine('DB_PREFIX', '');\n```\nupdate it with your database credentials. you can choose a prefix and the prefix is optional.\n\n#### Example\n My config.php file is like this\n\n```PHP\n  // Config Database\ndefine('DATABASE', [\n    'Port'   =\u003e '3306',\n    'Host'   =\u003e 'localhost',\n    'Driver' =\u003e 'PDO',\n    'Name'   =\u003e 'library',\n    'User'   =\u003e 'root',\n    'Pass'   =\u003e '',\n    'Prefix' =\u003e 'l_'\n]);\n\n// DB_PREFIX\ndefine('DB_PREFIX', 'l_');\n```\n\n### Step 3 - Installation \n\nAfter your updated config.php file. please open this path in your browser.\n```\nyourdomain.com/install \n```\n\nIf you see bellow message:\n```\nYour System Is Installed. Please remove SQL file in ...\n```\nIt's Done.\n\n## Usage\n\nYou can see all the books and authors with bellow URL\n```\nyourdomain.com/all\n```\nFor getting all books\n```\nyourdomain.com/books\n```\n\nFor getting all authors\n```\nyourdomain.com/authors\n```\nYou can search books with title, ISBN and author name\n```\nyourdomain.com/books/title/your-book-title\nyourdomain.com/books/isbn/your-book-isbn\nyourdomain.com/books/author/your-book-author\n```\nAnd you can see results in other pages\n```\nyourdomain.com/books/your-page-number\nyourdomain.com/authors/your-page-number\n\nyourdomain.com/books/title/your-book-title/your-page-number\nyourdomain.com/books/author/your-book-author/your-page-number\n```\n\nand ...\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafgprogrammer%2Fphp-mvc-book-library","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fafgprogrammer%2Fphp-mvc-book-library","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafgprogrammer%2Fphp-mvc-book-library/lists"}