{"id":16674663,"url":"https://github.com/lisachenko/zf2-aspect","last_synced_at":"2025-04-09T20:22:29.283Z","repository":{"id":6005939,"uuid":"7229062","full_name":"lisachenko/zf2-aspect","owner":"lisachenko","description":"Playground for integration of aspect-oriented programming into ZF2","archived":false,"fork":false,"pushed_at":"2014-10-26T16:19:38.000Z","size":707,"stargazers_count":10,"open_issues_count":1,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-23T22:14:03.596Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","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/lisachenko.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":"2012-12-18T19:31:13.000Z","updated_at":"2017-12-20T11:49:11.000Z","dependencies_parsed_at":"2022-08-06T19:01:04.800Z","dependency_job_id":null,"html_url":"https://github.com/lisachenko/zf2-aspect","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lisachenko%2Fzf2-aspect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lisachenko%2Fzf2-aspect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lisachenko%2Fzf2-aspect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lisachenko%2Fzf2-aspect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lisachenko","download_url":"https://codeload.github.com/lisachenko/zf2-aspect/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248104749,"owners_count":21048398,"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":"2024-10-12T12:43:51.070Z","updated_at":"2025-04-09T20:22:29.254Z","avatar_url":"https://github.com/lisachenko.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"GO AOP PHP and ZF2\n==================\n\nThis module showcases a simple implementation of Go! AOP PHP into [ZendSkelettonApplication of ZF2](https://github.com/zendframework/ZendSkeletonApplication).\nIt contains the full bootstrapping of ZF2 including a DemoAspect from which you'll be able to learn from.\n\nFor more information on different aspects please see the [full documentation](http://go.aopphp.com/docs/).\n\nInstallation\n------------\n\nThe easiest way to get Go! running with ZF2 is to create a composer project using this repository. You're able to \ncreate it as easily as running the following command in your CLI (assuming you have composer installed):\n\n    composer create-project -s dev lisachenko/zf2-aspect\n\nThe second option would be to clone this repository and run composer install.\n\n    git clone https://github.com/lisachenko/zf2-aspect \u0026\u0026 cd zf2-aspect \u0026\u0026 composer install\n\nOnce you've done this you're good to go and test out the power of Go! within your known ZF2 environment.\n\nEnable AOP\n----------\n\nPer default this project is running the ZendSkelettonApplication without AOP enabled. To enable AOP all you have to\ndo is to append ```?aspect``` to your URL. For example ```http://localhost:8080/?aspect```.\n\nTo enable AOP by default with your own aspect, all you need to do is change the contents of ```public/index.php``` to\nthe following:\n\n    \u003c?php\n    /**\n     * This makes our life easier when dealing with paths. Everything is relative\n     * to the application root now.\n     */\n    chdir(dirname(__DIR__));\n    \n    // Setup autoloading\n    require 'init_aspect.php';\n    \n    // Run the application!\n    Zend\\Mvc\\Application::init(require 'config/application.config.php')-\u003erun();\n\nYou should only do this for your own aspects though. The DemoAspect will match every function call and will echo its \nhook. So disable the DemoAspect in ```aspect/DemoAspectKernel.php``` and you're good to go.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flisachenko%2Fzf2-aspect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flisachenko%2Fzf2-aspect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flisachenko%2Fzf2-aspect/lists"}