{"id":33203162,"url":"https://github.com/ConsoleTVs/Apify","last_synced_at":"2025-11-17T03:00:54.200Z","repository":{"id":56957455,"uuid":"73238760","full_name":"ConsoleTVs/Apify","owner":"ConsoleTVs","description":"API generator for Laravel 5","archived":false,"fork":false,"pushed_at":"2017-10-09T20:59:18.000Z","size":7,"stargazers_count":26,"open_issues_count":0,"forks_count":4,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-09T00:59:38.174Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ConsoleTVs.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}},"created_at":"2016-11-09T00:18:47.000Z","updated_at":"2022-12-14T13:57:54.000Z","dependencies_parsed_at":"2022-08-21T09:50:14.767Z","dependency_job_id":null,"html_url":"https://github.com/ConsoleTVs/Apify","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/ConsoleTVs/Apify","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ConsoleTVs%2FApify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ConsoleTVs%2FApify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ConsoleTVs%2FApify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ConsoleTVs%2FApify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ConsoleTVs","download_url":"https://codeload.github.com/ConsoleTVs/Apify/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ConsoleTVs%2FApify/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":284813088,"owners_count":27067232,"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-11-17T02:00:06.431Z","response_time":55,"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":"2025-11-16T09:00:32.855Z","updated_at":"2025-11-17T03:00:54.195Z","avatar_url":"https://github.com/ConsoleTVs.png","language":"PHP","funding_links":[],"categories":["Packages"],"sub_categories":["Database/Eloquent/Models"],"readme":"# Apify\n## API generator for Laravel 5\n\n[![StyleCI](https://styleci.io/repos/73238760/shield?branch=master)](https://styleci.io/repos/73238760)\n![StyleCI](https://img.shields.io/badge/Built_for-Laravel-green.svg?style=flat-square)\n![StyleCI](https://img.shields.io/github/license/consoletvs/apify.svg?style=flat-square)\n\n![Apify Logo](http://i.imgur.com/cW6EpHY.png)\n\n## Table Of Contents\n\n-   [Installation](#installation)\n-   [Configuration](#configuration)\n-   [Usage](#usage)\n\n## Installation\n\nTo install apify use composer\n\n### Download\n\n```\ncomposer require consoletvs/apify\n```\n\n### Add service provider \u0026 alias\n\nAdd the following service provider to the array in: ```config/app.php```\n\n```php\nConsoleTVs\\Apify\\ApifyServiceProvider::class,\n```\n\n### Publish the assets\n\n```\nphp artisan vendor:publish\n```\n\n## Configuration\n\nTo configure the package go to: ```config/apify.php```\n\nThe default file have a valid example and it's documented, check it out, should look like this:\n\n```php\n\u003c?php\n\nreturn [\n    /*\n    |--------------------------------------------------------------------------\n    | Prefix used to access the API\n    |--------------------------------------------------------------------------\n    */\n    'prefix' =\u003e 'apify',\n\n    /*\n    |--------------------------------------------------------------------------\n    | Enables or disabled the whole API endpoints\n    |--------------------------------------------------------------------------\n    */\n    'enabled' =\u003e true,\n\n    /*\n    |--------------------------------------------------------------------------\n    | The tables enabled for the api and it's columns\n    |--------------------------------------------------------------------------\n    */\n    'tables' =\u003e [\n\n        // Specify all the tables below\n\n        'users' =\u003e [\n\n            // The columns from the table that will be displayed in the JSON\n\n            'id', 'name', 'email', 'created_at', 'updated_at'\n\n        ],\n\n    ],\n];\n```\n\n## Usage\n\nVisit the endpoint like this:\n\n```\nWebsite URL + /api/ + Prefix + /{table}/{accessor?}/{data?}\n```\n\n*table:* is the table you want to look at, must be an index of the table array in the configuration.\n\n*accessor:* is optional, and it's the colum to filter data.\n\n*data:* is the data you're filtering, you can add multiple data separated with a ,\n\n**Note:** Remember that all calls to the API goes first to the ```api``` middleware, if you need to modify the api throttle go to: ```App\\Http\\Kernel.php``` and modify the api throttle.\n\n```php\n'api' =\u003e [\n    'throttle:60,1',\n    'bindings',\n],\n```\n\nThe ```60``` determines the max calls / minute.\n\nThe ```1``` determines the minutes to wait if the max calls are exceded.\n\nSome examples:\n\n```\nhttp://localhost/web/Laralum3/public/api/apify/users (example URL)\n```\n\n```json\n{\"users\":[{\"id\":1,\"name\":\"\\u00c8rik Campobadal\",\"email\":\"ConsoleTVs@gmail.com\",\"created_at\":\"2016-09-22 16:13:28\",\"updated_at\":\"2016-10-02 11:18:25\"},{\"id\":2,\"name\":\"Second User\",\"email\":\"ConsoleTV2s@gmail.com\",\"created_at\":\"2016-09-21 16:13:28\",\"updated_at\":\"2016-09-22 16:20:00\"},{\"id\":3,\"name\":\"Third User\",\"email\":\"ConsoleTV3s@gmail.com\",\"created_at\":\"2016-08-22 16:13:28\",\"updated_at\":\"2016-09-22 16:20:00\"}]}\n```\n\n```\nhttp://localhost/web/Laralum3/public/api/apify/users/email/ConsoleTVs@gmail.com,ConsoleTV3s@gmail.com (example URL)\n```\n\n```json\n{\"users\":[{\"id\":1,\"name\":\"\\u00c8rik Campobadal\",\"email\":\"ConsoleTVs@gmail.com\",\"created_at\":\"2016-09-22 16:13:28\",\"updated_at\":\"2016-10-02 11:18:25\"},{\"id\":3,\"name\":\"Third User\",\"email\":\"ConsoleTV3s@gmail.com\",\"created_at\":\"2016-08-22 16:13:28\",\"updated_at\":\"2016-09-22 16:20:00\"}]}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FConsoleTVs%2FApify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FConsoleTVs%2FApify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FConsoleTVs%2FApify/lists"}