{"id":21842628,"url":"https://github.com/brookinsconsulting/bcpagedatabundle","last_synced_at":"2026-05-16T20:32:01.724Z","repository":{"id":62497503,"uuid":"78580334","full_name":"brookinsconsulting/BcPageDataBundle","owner":"brookinsconsulting","description":"The BC Page Data Bundle implements a solution to provide request persistent variable storage service. Provides a symfony based replacement for the legacy ezpagedata operator","archived":false,"fork":false,"pushed_at":"2017-03-08T06:52:31.000Z","size":18,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-26T11:27:54.390Z","etag":null,"topics":["ezplatform","ezpublishplatform","legacy-ezpagedata-operator","persistent-storage-variables","php","symfony","twig-filter"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/brookinsconsulting.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":"2017-01-10T22:29:12.000Z","updated_at":"2017-03-08T06:54:42.000Z","dependencies_parsed_at":"2022-11-02T12:01:33.328Z","dependency_job_id":null,"html_url":"https://github.com/brookinsconsulting/BcPageDataBundle","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/brookinsconsulting%2FBcPageDataBundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brookinsconsulting%2FBcPageDataBundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brookinsconsulting%2FBcPageDataBundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brookinsconsulting%2FBcPageDataBundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brookinsconsulting","download_url":"https://codeload.github.com/brookinsconsulting/BcPageDataBundle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244825654,"owners_count":20516592,"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":["ezplatform","ezpublishplatform","legacy-ezpagedata-operator","persistent-storage-variables","php","symfony","twig-filter"],"created_at":"2024-11-27T22:12:40.243Z","updated_at":"2026-05-16T20:32:00.711Z","avatar_url":"https://github.com/brookinsconsulting.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"BC Page Data\n===================\n\nThis bundle implements a solution to provide request persistent variable storage service. Provides a symfony based replacement for the legacy ezpagedata operator.\n\nVersion\n=======\n\n* The current version of BC Page Data is 0.1.0\n\n* Last Major update: May 19, 2015\n\n\nCopyright\n=========\n\n* BC Page Data is copyright 1999 - 2015 Brookins Consulting and 2013 - 2015 Think Creative\n\n* See: [COPYRIGHT.md](COPYRIGHT.md) for more information on the terms of the copyright and license\n\n\nLicense\n=======\n\nBC Document Reader is licensed under the GNU General Public License.\n\nThe complete license agreement is included in the [LICENSE](LICENSE) file.\n\nBC Document Reader is free software: you can redistribute it and/or modify\nit under the terms of the GNU General Public License as published by\nthe Free Software Foundation, either version 2 of the License or at your\noption a later version.\n\nBC Document Reader is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\nGNU General Public License for more details.\n\nThe GNU GPL gives you the right to use, modify and redistribute\nBC Document Reader under certain conditions. The GNU GPL license\nis distributed with the software, see the file doc/LICENSE.\n\nIt is also available at [http://www.gnu.org/licenses/gpl.txt](http://www.gnu.org/licenses/gpl.txt)\n\nYou should have received a copy of the GNU General Public License\nalong with BC Document Reader in doc/LICENSE.  If not, see [http://www.gnu.org/licenses/](http://www.gnu.org/licenses/).\n\nUsing BC Document Reader under the terms of the GNU GPL is free (as in freedom).\n\nFor more information or questions please contact: license@brookinsconsulting.com\n\n\nRequirements\n============\n\nThe following requirements exists for using BC Page Data extension:\n\n\n### eZ Publish version\n\n* Make sure you use eZ Publish version 5.x (required) or higher.\n\n* Designed and tested with eZ Publish Community Project 2013.11\n\n\n### PHP version\n\n* Make sure you have PHP 5.x or higher.\n\n\nFeatures\n========\n\n### Dependencies\n\n* This solution does not depend on eZ Publish Legacy in any way\n\n\n### Twig operators\n\nThis solution provides the following twig filter.\n\n* Twig Filter: `bc_pagedata` - Used within template overrides to access variable content from the persistent (page data) service.\n\n\n### Services\n\n* The `brookinsconsulting.page_data_persistence` service can be used to get persistent storage variables or add variables into the request variable persistent storage provided within this bundle.\n\n\nInstallation\n============\n\n### Bundle Installation via Composer\n\nRun the following command from your project root to install the bundle:\n\n    bash$ composer require brookinsconsulting/bcpagedatabundle dev-master;\n\n\n### Bundle Activation\n\nWithin file `ezpublish/EzPublishKernel.php` at the bottom of the `use` statements, add the following lines.\n\n    use BrookinsConsulting\\BcPageDataBundle\\BcPageDataBundle;\n\n\nWithin file `ezpublish/EzPublishKernel.php` method `registerBundles` add the following into the `$bundles = array(` variable definition.\n\n    new BrookinsConsulting\\BcPageDataBundle\\BcPageDataBundle(),\n\n### Clear the caches\n\nClear eZ Publish Platform / eZ platfrom caches (Required).\n\n    php ezpublish/console cache:clear;\n\n\nUsage\n=====\n\nThe solution is configured to work virtually by default once properly installed.\n\nYou can use the twig filter `bc_pagedata` within your own twig templates to access persistent variables.\n\nYou can use the `brookinsconsulting.page_data_persistence` service within your own custom PHP code to get persistent storage variables or add variables into the persistent storage.\n\n    $pageDataPersistence = $this-\u003econtainer-\u003eget( 'brookinsconsulting.page_data_persistence' );\n    // Access persistent storage\n    if ( $this-\u003epageDataPersistence-\u003ehas( 'document_readers' ) )\n    {\n        $this-\u003edocumentReaders = $this-\u003epageDataPersistence-\u003eget( 'document_readers' );\n    }\n    else\n    {\n        $this-\u003eset( array(), 'document_readers' );\n        $this-\u003edocumentReaders = $this-\u003epageDataPersistence-\u003eget( 'document_readers' );\n    }\n\n\nTroubleshooting\n===============\n\n### Read the FAQ\n\nSome problems are more common than others. The most common ones are listed in the the [doc/FAQ.md](doc/FAQ.md)\n\n\n### Support\n\nIf you have find any problems not handled by this document or the FAQ you can contact Brookins Consulting through the support system: [http://brookinsconsulting.com/contact](http://brookinsconsulting.com/contact)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrookinsconsulting%2Fbcpagedatabundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrookinsconsulting%2Fbcpagedatabundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrookinsconsulting%2Fbcpagedatabundle/lists"}