{"id":16430898,"url":"https://github.com/abalad/codeigniter-restfull-automatic","last_synced_at":"2025-08-18T09:44:52.894Z","repository":{"id":24215580,"uuid":"27607488","full_name":"abalad/codeigniter-RestFull-Automatic","owner":"abalad","description":"A full implementation Restfull GET, PUT, POST, DELETE, automatic","archived":false,"fork":false,"pushed_at":"2014-12-08T14:56:46.000Z","size":536,"stargazers_count":12,"open_issues_count":0,"forks_count":2,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-07-08T11:04:59.285Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/abalad.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":"2014-12-05T19:52:25.000Z","updated_at":"2021-07-19T22:43:38.000Z","dependencies_parsed_at":"2022-08-22T14:00:06.584Z","dependency_job_id":null,"html_url":"https://github.com/abalad/codeigniter-RestFull-Automatic","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/abalad/codeigniter-RestFull-Automatic","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abalad%2Fcodeigniter-RestFull-Automatic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abalad%2Fcodeigniter-RestFull-Automatic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abalad%2Fcodeigniter-RestFull-Automatic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abalad%2Fcodeigniter-RestFull-Automatic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abalad","download_url":"https://codeload.github.com/abalad/codeigniter-RestFull-Automatic/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abalad%2Fcodeigniter-RestFull-Automatic/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270974779,"owners_count":24678250,"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","status":"online","status_checked_at":"2025-08-18T02:00:08.743Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-10-11T08:28:39.825Z","updated_at":"2025-08-18T09:44:52.832Z","avatar_url":"https://github.com/abalad.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## CodeIgniter RestFull Automatic\n\nDo you think repetivo having to create all standards methods for all tables to make a Restfull mapping?\n\nWelcome this is CodeIgniter Restfull Automatic.\n\nSee the below its Advantages:\n\nA full implementation Restfull GET, PUT, POST, DELETE, automatic\n\n## Requirements\n\n1. PHP 5.2 or greater\n2. CodeIgniter 2.1.0 to 3.0-dev\n\n_Note: for 1.7.x support download v2.2 from Downloads tab_\n\n## Installation\n\nDrag and drop the **application/libraries/Format.php**, **application/libraries/REST_Controller.php**,**application/core/MY_Controller.php** and **application/core/MY_Model.php** files into your application's directories. To use `require_once` it at the top of your controllers to load it into the scope. Additionally, copy the **rest.php** file from **application/config** in your application's configuration directory. More information visit \n\nThe author chriskacerguis: https://github.com/chriskacerguis/codeigniter-restserver\n\n## Handling Requests\n\nTo make requests, you must create within the Implementation Legislation **application/controllers/api** a file with the name of the Table **NameTable.php**, the database to which you want to capture or handle the data.\n\nOnce this is done, create a class following the pattern of CodeIgniter, with the following code:\n\n\tclass NameTable extends REST_Controller\n\t{\n\t    //Constructor Default\n\t    public function __construct()\n\t    {\n\t    \tparent::__construct( get_class($this) );\n\n\t    }\n\t}\n\n_Note: The table which you are mapping should have a Primary Key or Unico field called ID, otherwise you must recreate the method get or update with the new primary key._\n\nThere, only with this code, you already will have a Restfull API, with GET, INSERT, DELETE, UPDATE.\n\nYou can create new methods in this class following the pattern of our friend chriskacerguis, where it has a very good API, where it was developed using his work.\n\n## Requests\n\nTo make requests, simply call as follows:\n\n\thttp://example.com/index.php/api/NameTable/           GETALL\n\thttp://example.com/index.php/api/NameTable/query/id/1 GET \n\thttp://example.com/index.php/api/NameTable/           POST\t\n\thttp://example.com/index.php/api/NameTable/query/id/1 PUT \n\thttp://example.com/index.php/api/NameTable/query/id/1 DELETE \n\n\n_Note: The word query can be replaced by any word, staying for example set:._\n\n\thttp://example.com/index.php/api/Operators/Operator/id/1 GET\n\thttp://example.com/index.php/api/Operators/Operator/id/1 PUT\n\thttp://example.com/index.php/api/Operators/Operator/id/1 DELETE \n\n## Contributions\n\nThis project was developed based on the code written by chriskacerguis. Just created a way to make the standard methods of requests, a little easier to be implemented, while taking the complexity and usability of other methods.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabalad%2Fcodeigniter-restfull-automatic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabalad%2Fcodeigniter-restfull-automatic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabalad%2Fcodeigniter-restfull-automatic/lists"}