{"id":17134367,"url":"https://github.com/brianium/zf2-overview","last_synced_at":"2025-09-11T10:40:02.824Z","repository":{"id":11964086,"uuid":"14536300","full_name":"brianium/zf2-overview","owner":"brianium","description":"A simple overview of ZF2 components and applications","archived":false,"fork":false,"pushed_at":"2013-11-20T14:10:12.000Z","size":604,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-01T14:49:07.747Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CSS","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/brianium.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":"2013-11-19T19:58:05.000Z","updated_at":"2013-11-20T14:10:12.000Z","dependencies_parsed_at":"2022-09-14T13:01:47.148Z","dependency_job_id":null,"html_url":"https://github.com/brianium/zf2-overview","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/brianium/zf2-overview","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brianium%2Fzf2-overview","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brianium%2Fzf2-overview/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brianium%2Fzf2-overview/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brianium%2Fzf2-overview/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brianium","download_url":"https://codeload.github.com/brianium/zf2-overview/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brianium%2Fzf2-overview/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274616990,"owners_count":25318281,"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-09-11T02:00:13.660Z","response_time":74,"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-14T19:44:43.152Z","updated_at":"2025-09-11T10:40:02.801Z","avatar_url":"https://github.com/brianium.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"ZF2 Overview\n============\n\n2 examples of using ZF2 built for [GrPHPDev](http://www.meetup.com/GrPhpDev/)\n\nSlides found [here](http://slid.es/brianscaturro/zend-framework-2)\n\nThis repo contains 2 applications:\n\n##hydrator-http##\nThis is a simple application built using the [Silex](http://silex.sensiolabs.org/) microframework, and a couple of ZF2 components - namely [Zend\\Http](http://framework.zend.com/manual/2.2/en/modules/zend.http.html), and Zend\\Stdlib for [Hydrator](http://framework.zend.com/manual/2.2/en/modules/zend.stdlib.hydrator.html) support.\n\nThis app fetches collaborators on a github repository by viewing /{owner}/{repo}, i.e /brianium/paratest.\n\nZF2 components and Silex are included via composer, so from the repo root:\n\n```\ncd hydrator-http\ncomposer install\n```\n\nYou can run the app using the built in PHP web server. The web application lives at web/index.php\n\n```\nphp -S localhost:8080 -t web/\n```\n\n##application##\nThis is a ZF2 MVC application. It is built off of the [ZF2 Skeleton Application](https://github.com/zendframework/ZendSkeletonApplication). \n\nIt leverages the [ZfcUser](https://github.com/ZF-Commons/ZfcUser) module for ready-baked authentication.\n\n###Requirements###\nThe ZfcUser module uses mysql to store user information, so you will need that running and installing. You will need to create a database called `zfoverview` for things to work. You can configure mysql stuff in `application/config/autoload/database.local.php`\n\ncomposer is used to manage dependencies in this app as well so:\n\n```\ncd application\ncomposer install\n```\n\n###Run the app###\nThe app can be run with the local php server as well:\n\n```\ncd application\nphp -S localhost:8080 -t public/\n```\n\n###Note on Zend\\Http\\Client###\nThe Zend\\Http\\Client at the time this app was created, does not work with Zend's ZendService\\Twitter\\Twitter client. After doing a composer install you will need to update line 1358 of Zend\\Http\\Client.php to the following:\n\n```php\nself::getAdapter()-\u003econnect($uri-\u003egetHost(), $uri-\u003egetPort(), $secure);\n```\n\n##Application features##\nThis is a toy application that uses ZendService\\Twitter\\Twitter to search tweets and demonstrate the ZfcUser module for authentication.\n\nYou can login/register at /user\nThe tweet searcher is visible at /tweets after logging in.\n\nIn order to leverage the twitter service, you will need to register an application at developer.twitter.com. Replace the access_token and oauth_options in application/module/Application/config/module.config.php with they info twitter gives you for your app.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrianium%2Fzf2-overview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrianium%2Fzf2-overview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrianium%2Fzf2-overview/lists"}