{"id":27265886,"url":"https://github.com/sgtlambda/contextual","last_synced_at":"2025-10-27T18:33:59.089Z","repository":{"id":29814662,"uuid":"33359111","full_name":"sgtlambda/contextual","owner":"sgtlambda","description":"Simple object-oriented contexts","archived":false,"fork":false,"pushed_at":"2016-07-07T14:44:38.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-17T14:41:45.149Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"dformoso/machine-learning-mindmap","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sgtlambda.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-04-03T10:43:26.000Z","updated_at":"2016-07-04T15:53:33.000Z","dependencies_parsed_at":"2022-08-21T13:20:42.452Z","dependency_job_id":null,"html_url":"https://github.com/sgtlambda/contextual","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sgtlambda%2Fcontextual","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sgtlambda%2Fcontextual/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sgtlambda%2Fcontextual/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sgtlambda%2Fcontextual/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sgtlambda","download_url":"https://codeload.github.com/sgtlambda/contextual/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248362226,"owners_count":21091072,"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":[],"created_at":"2025-04-11T08:39:24.051Z","updated_at":"2025-10-27T18:33:54.044Z","avatar_url":"https://github.com/sgtlambda.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"contextual\n==========\n \u003e Simple object-oriented contexts\n\n[![Build Status][travis-image]][travis-url]\n[![Code Quality][scrutinizer-g-image]][scrutinizer-g-url]\n[![Code Coverage][coveralls-image]][coveralls-url]\n[![Packagist Version][packagist-image]][packagist-url]\n\n## Usage\n\n```php\n\n/**\n * @property boolean $JSON\n * @property boolean $admin\n * @property string  $type\n */\nclass ResponseContext extends \\jmversteeg\\contextual\\Context\n{\n\n    // Declare default values with a preceding underscore\n    \n    private $_JSON  = false;\n    private $_admin = false;\n    private $_type  = 'body';\n\n}\n\n$responseContext = new ResponseContext([\n    'JSON' =\u003e true,\n    'type' =\u003e 'ajax'\n]);\n\n$responseContext-\u003eJSON;\n// =\u003e true\n$responseContext-\u003eadmin;\n// =\u003e false\n\n$subContext = $responseContext-\u003ecreateSubContext([\n    'admin' =\u003e true\n]);\n\n$subContext-\u003eJSON;\n// =\u003e true\n$subContext-\u003eadmin;\n// =\u003e true\n\n```\n \n[travis-image]: https://img.shields.io/travis/jmversteeg/contextual.svg?style=flat-square\n[travis-url]: https://travis-ci.org/jmversteeg/contextual\n\n[scrutinizer-g-image]: https://img.shields.io/scrutinizer/g/jmversteeg/contextual.svg?style=flat-square\n[scrutinizer-g-url]: https://scrutinizer-ci.com/g/jmversteeg/contextual/\n\n[coveralls-image]: https://img.shields.io/coveralls/jmversteeg/contextual.svg?style=flat-square\n[coveralls-url]: https://coveralls.io/r/jmversteeg/contextual\n\n[packagist-image]: https://img.shields.io/packagist/v/jmversteeg/contextual.svg?style=flat-square\n[packagist-url]: https://packagist.org/packages/jmversteeg/contextual\n\n## License\n\nMIT © JM Versteeg\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsgtlambda%2Fcontextual","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsgtlambda%2Fcontextual","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsgtlambda%2Fcontextual/lists"}