masev / ezpublish-kernel
eZ Publish API and kernel. This is the heart of eZ Publish 5.
Requires
- php: >=5.3.3
- ext-ctype: *
- ext-fileinfo: *
- ext-gd: *
- ext-intl: *
- ext-json: *
- ext-mbstring: *
- ext-pdo: *
- ext-spl: *
- ext-xsl: *
- doctrine/dbal: 2.5.*@beta
- doctrine/doctrine-bundle: 1.3.*@beta
- kriswallsmith/buzz: >=0.9
- nelmio/cors-bundle: 1.3.*
- ocramius/proxy-manager: 0.5.*
- pagerfanta/pagerfanta: ~1.0
- qafoo/rmf: 1.0.*
- sensio/distribution-bundle: ~2.3
- symfony-cmf/routing: 1.1.*
- symfony/symfony: ~2.3
- tedivm/stash-bundle: 0.4.*
- zetacomponents/mail: ~1.8
- zetacomponents/php-generator: ~1.1
Requires (Dev)
- ezsystems/ezpublish-legacy: @dev
- matthiasnoback/symfony-dependency-injection-test: 0.*
- mikey179/vfsstream: 1.1.0
- mockery/mockery: dev-master
- phpunit/phpunit: ~4.1.3
Suggests
- php-64bit: For support of more than 30 languages, a 64bit php installation on all involved prod/dev machines is required
Conflicts
- zendframework/zend-stdlib: >=2.3
Replaces
- ezsystems/ezpublish: *
- ezsystems/ezpublish-api: v2014.07.3
- ezsystems/ezpublish-spi: v2014.07.3
- v2014.07.3
- v2014.07.2
- v2014.07.1
- v2014.07.0
- v2014.05.2
- v2014.05.1
- v2014.05.0
- v2014.03.4
- v2014.03.3
- v2014.03.2
- v2014.03.1
- v2014.01.5
- v2014.01.4
- v2014.01.3
- v2014.01.2
- v2014.01.1
- v2014.01.0
- v2013.11.1
- v2013.11.0
- v2013.09.2
- v2013.09.1
- v2013.09.0
- v2013.07.3
- v2013.07.2
- v2013.07.1
- v2013.07.0
- v2013.06.0
- v2013.05.0
- v2013.04.0
- 5.2.0
- 5.2.0-rc1
- v5.2.0-beta1
- 5.1.0-stable
- 5.1.0-rc1
- 5.1.0-beta2
- 5.0.0
- dev-php53
- dev-EZP-23441-io_url_decoration
- dev-EZP-23317_good
- dev-dx_symlinks
- dev-impl-EZP-22564-elasticsearch-storage
- dev-EZP-23328-io_interfaces_split
- dev-EZP-23328-io_interfaces_split-dfs
- dev-impl_EZP-22400_FOSHttpCacheBundle
- dev-EZP-23447-io_services_bc_doc
- dev-EZP-23328-io_interfaces_split-config_cleanup
- dev-EZP-23328-io_dfs
- dev-repo_decoupling
- dev-move_spi_search
- dev-fix-EZP-22408-relation-ref
- dev-fix_EZP-23287_emptyImage
- dev-deprecate_userGroup_subGroupCount
- dev-EZP-23089-rest_siteaccess_api
- dev-impl-EZP-22564-location-search-solr
- dev-IO-Legacy-serverUri
- dev-unauthorizedexception_more_info
- dev-fix-maxlanguage-test-dependency
- dev-EZP-22781-preview_image_draft
- dev-repo_structure
- dev-EZP-22577-mapLocationDistance_query_builder
- dev-rest_serialize_ContentTypeGroupCreateStruct
- dev-backend_updates
- dev-rest_output_indenting
- dev-extensible_ezpublish_kernel
- dev-fix-EZP-21912-validate-parent-location-id
- dev-themes
- dev-restspec
- dev-sql-ng
- dev-fixListContentTypeRESTSpec
- dev-ezxmltext-domdocument
- dev-multiSite
- dev-bundlePermissions
- dev-rest-client
- dev-Specification/eZXML5
This package is not auto-updated.
Last update: 2024-11-05 06:09:58 UTC
README
Welcome to the new eZ Publish 5.x Kernel, this code repository contains several layers of API's and implementation of them. However it does not contain all parts that make up the eZ Publish 5 install, for the full eZ Publish 5 package including bundles, Legacy Stack, install doc and more; please see our ezpublish-community repository.
Legacy Stack (LS)
Legacy Stack: Legacy kernel (4.x) + extensions
eZ Publish 5.x is a bottom up rewrite of eZ Publish, so a conservative approach where taken on backwards compatibility by bundling both Legacy Stack (4.x) and 5.x Stack together in one integrated package (ref ezpublish-community repository above).
In addition to the BC reason, the second reason is that eZ Publish 5.x does not yet provide own UI's, editor and admin gui is for the time being still provided by Legacy Stack.
The legacy integrations are done in many parts of the systems, making it possible to use both kernels in the same request, hence being able to do a smooth transition from existing 4.x installation to 5.x installation going forward.
However for performance reasons we recommend trying to use either legacy with "legacy_mode" turned on or pure 5.x Stack on a siteaccess case by case basis. This will still make sure cache and other integrations work together (something that is not the case if you point Apache directly to eZ Publish Legacy), but will avoid duplicate lookups ("fallbacks").
5.x Stack
5.x Stack: 5.x kernel + Bundles (former extensions)
Bundles
The highest level in the eZ Publish 5 architecture are bundles that builds on top of everything bellow, this is where most eZ Publish 5 Bundles will be written. They will exist in separate git repositories, and optionally defined as dependencies in your project composer.json file (see ezpublish-community repository).
5.x Kernel
Kernel Bundles: REST, Core & Legacy
These bundles are important parts of the eZ Publish 5.x kernel.
- Core Bundle: Provide additional features to a standard Symfony2 distribution like multilingual UrlAlias routing, siteaccess matching, permissions and helpers for Public API use.
- Legacy Bundle: Integrations with Legacy kernel, like fallbacks and code reuse across 5.x/Legacy Stack.
- REST Bundle: Integration of REST API to 5.x (Symfony) Stack
You can find these in eZ/Bundle and their lower level parts in:
- eZ/Publish/Core/REST The REST API implementation
- eZ/Publish/Core/MVC MVC implementation that integrate with Symfony and Legacy
Public API
Public API currently provides access to the Content Repository of eZ Publish, exposing Content, Locations (former Nodes), Sections, Content Types (former Content Classes), User Groups, Users and Roles. It also provides a new clear interface for plugging in custom field types (former Datatypes).
Public API is built on top of a set of SPI's abstracting storage/file/* functionality. By using Public API your code will be forward compatible to future releases based on enhanced, more scalable and more performant storage engines. It is also fully backwards compatible by using the included "Legacy" storage engine, which stores data in the way legacy kernel is used to finding it.
Important parts of this layer is:
- eZ/Publish/API Public API Interfaces
- eZ/Publish/Core/Repository Public API Repository implementation
(Private) SPI(Service Provider Interface)
Service Provider Interfaces are interfaces that can contain one or several implementations, in some cases Public API will only be able to use one at a time; Persistence (database), IO (file system). In other cases it expects several implementations; FieldTypes (former DataTypes), Limitations (permissions system).
SPI layer is currently considered "private" as it will still undergo changes, it will be made "final" by the time we have a fully working NoSQL implementation of Persistence and scalable IO storage implementation like S3. Meaning you can make your own implementation if you want, but we don't guarantee that it will work across versions.
Currently SPI consists of:
- eZ/Publish/SPI Service provider interfaces
- eZ/Publish/Core/Persistence/Legacy Legacy Storage-Engine (Persistence-handler)
- eZ/Publish/Core/IO IO (file) Handlers; Legacy, Dispatcher and FileSystem (for integration tests)
How to run tests
Dependencies
- PHP 5 Modules: php5_intl php5_xsl php5_gd php5_sqlite
- Database: sqlite3
You can also run tests (slower) on mysql or postgres, see .travis.yml for how.
Installation
- Clone this repo
git clone https://github.com/ezsystems/ezpublish-kernel.git
- Enter directory
cd ezpublish-kernel
- Get Composer using curl
curl -s http://getcomposer.org/installer | php
- Install dev dependencies:
php composer.phar install --prefer-dist --dev
- Copy config.php-DEVELOPMENT
cp config.php-DEVELOPMENT config.php
- Execute
phpunit -vc phpunit*.xml
with one of:- phpunit.xml unit test xml configuration
- phpunit-integration-legacy.xml integration test xml configuration for running integration tests with Legacy Storage engine
This should produce similar result as travis. If you don't double check .travis.yml for up-to-date info on how travis is setup.
Issue tracker
Submitting bugs, improvements and stories is possible on https://jira.ez.no/browse/EZP
Contributing
eZ Publish 5.x is a fully open source, community-driven project, and code contributions are simply done via github pull requests.
Short:
- Remember to first create a issue in our issue tracker and refer to it in commits and pull requests headers, example: "Fix EZP-20104: ContentController should return error status when content is not found" or "Implement EZP-201xx: Add support for X in Y"
- If you want to contribute implementation specification proposals, place them in doc/ folder.
- Keep different changes in different commits in case cherry-pick is preferred instead of a merge later.
- A Pull Request should only cover one issue.
- A commit should not contain code changes at the same time as doing coding standards/whitespace/typo fixes.
- TDD: Write/Change the test(s) for the change you do and commit it before you do the actual code change.
- If a bug affects Public API, write or enhance a integration test to make sure the bug is covered.
- Unit tests should only use mocks/stubs and never test the full stack like integrations tests does.
- Please test/check your commits before pushing even if we have automated checks in place on pull requests:
- Run unit tests and integration test before commits
- Make sure you follow our coding standards
For further information please have a look at the related guidance page. You will, amongst other, learn how to make pull-requests. More on this here : "How to contribute to eZ Publish using GIT".
Discussing/Exchanging
A dedicated forum has been set-up to discuss all PHP API-related topics : http://share.ez.no/forums/new-php-api
Copyright & license
Copyright eZ Systems AS, for copyright and license details see provided LICENSE file.