{"id":23117018,"url":"https://github.com/assistanz/zf2-skeleton","last_synced_at":"2026-04-29T16:39:11.517Z","repository":{"id":13991542,"uuid":"16692626","full_name":"assistanz/zf2-skeleton","owner":"assistanz","description":"Zend Framework Doctrine Working Skeleton","archived":false,"fork":false,"pushed_at":"2014-03-31T03:52:59.000Z","size":832,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-04T01:29:19.173Z","etag":null,"topics":["doctrine","php","zend-framework","zend-framework2"],"latest_commit_sha":null,"homepage":"http://assistanz.github.io/zf2-skeleton","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/assistanz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-02-10T10:55:12.000Z","updated_at":"2017-03-28T11:45:09.000Z","dependencies_parsed_at":"2022-08-02T23:45:53.346Z","dependency_job_id":null,"html_url":"https://github.com/assistanz/zf2-skeleton","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/assistanz/zf2-skeleton","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/assistanz%2Fzf2-skeleton","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/assistanz%2Fzf2-skeleton/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/assistanz%2Fzf2-skeleton/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/assistanz%2Fzf2-skeleton/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/assistanz","download_url":"https://codeload.github.com/assistanz/zf2-skeleton/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/assistanz%2Fzf2-skeleton/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271248027,"owners_count":24726012,"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-19T02:00:09.176Z","response_time":63,"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":["doctrine","php","zend-framework","zend-framework2"],"created_at":"2024-12-17T04:18:16.584Z","updated_at":"2026-04-29T16:39:11.467Z","avatar_url":"https://github.com/assistanz.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"AssistanZ ZendFrameWork2 Skeleton Application\n=============================================\n\nDirectory Structure\n-------------------\n\n* build - Final files generated for deployment to production server\n* config - Includes various configurations \n* data - Contains database scripts or SQLite DB or Cached files for performance\n* module - Logic of the application divided into various modules\n* public - Publicly available directories which contains static files like css,js, etc.,\n* vendor - Downloaded libraries to support the functionalities of modules via composer(refer getcompoer.org)\n\nModule Structure \n----------------\n\nEvery module has the following files and directories\n\n* config  - Module configuration\n    * module.config.php - Contains router configuration, dependency services, translator path, view-templates, view-helpers, etc.,\n* language - Contains language translation files per language\n* src - Module source code written in PSR-0 Standard\n* test - Test code to check functionality of the module (Unit Test, Integration Test, etc.,)\n* view - View templates to display html and other output\n* Module.php - Module Bootstrap initializes the module with required dependencies \n\nModule coding standards\n-----------------------\n\nExplaining the album module\n\n* Controller - Contains controller classes with actions, Mapping between controller and route paths are done in module.config.php\n* Dao - Data Access Object layer used to write SQLs and DQLs, Clear separation of data access from functionality this part can even access external SOAP / REST services if they are considered as a data source\n* Entity - Doctrine mapped entities which act as objects reference for tables\n* Exception - Specific exception related to this module\n* Form - Structure and content of html forms which includes validation and filtering to avoid injections and inappropriate data \n* Service - The business logic of the module commonly known as models\n\n\nGuidelines\n----------\n\n* Coding standard should be practiced as in the sample\n* Filename should be with PHP 5.3 namespaces and PSR-0 recommendations\n* Function names should be with Hungarian notation start with small letter and separate words with capital letter\n* Don't store uploaded files inside public directories store it in different location out of this project and use Apache Alias directive to load them \n* Use SVN/Git to version the project and have multiple stages before releasing to production\n* Try to write as many test cases as possible to ensure the functionality is without bug\n* Run unit tests before committing the code to repository\n* Use Phuppet and Vagrant for development and stagging environments if required\n* Add all the required libraries and extensions in composer.json \n* Automate deployments and testing using a continues integration system like Jenkins/Hudson if possible\n\n\n\nDB Tools\n------\n\n* ORM Mapped entities can be generated to tables using scripts\n    *  [~/project.base]$ php vendor/bin/doctrine\n* Automated Table creation should not be done in production via doctrine save the SQL and run it via migration scripts\n    * [~/project.base]$ php vendor/bin/doctrine orm:schema-tool:update --dump-sql\n    * [~/project.base]$ php ./vendor/bin/doctrine-module migrations:generate --configuration config/migrations.yml\n    * Save the change add your own changes (Refer http://docs.doctrine-project.org/projects/doctrine-migrations/en/latest/reference/migration_classes.html)\n    * In production run the following\n    * [~/project.base]$ php ./vendor/bin/doctrine-module migrations:migrate --configuration config/migrations.yml\n\n\nSecurity and Pre-developed Modules\n----------------------------------\n\n* The application can use various other modules available from Zend Framework community http://modules.zendframework.com/\n* Security can be implemented as explained in https://github.com/bjyoungblood/BjyAuthorize\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fassistanz%2Fzf2-skeleton","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fassistanz%2Fzf2-skeleton","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fassistanz%2Fzf2-skeleton/lists"}