{"id":36397434,"url":"https://github.com/professorhaseeb/smartoutput","last_synced_at":"2026-01-11T16:00:31.803Z","repository":{"id":62530836,"uuid":"56681519","full_name":"professorhaseeb/smartOutput","owner":"professorhaseeb","description":"Smart Output for RESTful PHP APIs","archived":false,"fork":false,"pushed_at":"2017-02-06T11:22:20.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-20T02:42:01.603Z","etag":null,"topics":["api","api-response","response","rest","rest-api","restful","restful-api"],"latest_commit_sha":null,"homepage":"","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/professorhaseeb.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-04-20T11:32:08.000Z","updated_at":"2017-01-29T18:20:16.000Z","dependencies_parsed_at":"2022-11-02T14:31:32.834Z","dependency_job_id":null,"html_url":"https://github.com/professorhaseeb/smartOutput","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/professorhaseeb/smartOutput","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/professorhaseeb%2FsmartOutput","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/professorhaseeb%2FsmartOutput/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/professorhaseeb%2FsmartOutput/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/professorhaseeb%2FsmartOutput/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/professorhaseeb","download_url":"https://codeload.github.com/professorhaseeb/smartOutput/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/professorhaseeb%2FsmartOutput/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28312075,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-11T14:58:17.114Z","status":"ssl_error","status_checked_at":"2026-01-11T14:55:53.580Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["api","api-response","response","rest","rest-api","restful","restful-api"],"created_at":"2026-01-11T16:00:18.418Z","updated_at":"2026-01-11T16:00:31.777Z","avatar_url":"https://github.com/professorhaseeb.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Smart Output - [![Build Status](https://travis-ci.org/professorhaseeb/smartOutput.svg?branch=master)](https://travis-ci.org/professorhaseeb/smartOutput)\n\n##Installation\n```\ncomposer require professorhaseeb/smart-output\n```\n\n##Usage\n```php\n// setup class\n$so = new smartOutput();\n```\nSetting Response:\n```php\n//set response code in first parameter and the response output in the second\n$so-\u003esetResponse(0,\"RESPONSE DATA\");\n// Array can be passed too\n// $arr = (\"request\" =\u003e \"true\");\n// $so-\u003esetResponse(0,$arr);\n```\nGet Response:\n```php\necho json_encode($so-\u003egetResponse());\n```\nOutput:\n```json\n{\n  \"status_code\": 0,\n  \"status\": \"success\",\n  \"message\": \"Request successfull\",\n  \"response\": \"RESPONSE DATA\"\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprofessorhaseeb%2Fsmartoutput","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprofessorhaseeb%2Fsmartoutput","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprofessorhaseeb%2Fsmartoutput/lists"}