Download the PHP package contenir/contenir-resource-mezzio without Composer

On this page you can find all versions of the php package contenir/contenir-resource-mezzio. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package contenir-resource-mezzio

contenir/contenir-resource-mezzio

Continuous Integration codecov

The Mezzio adapter for contenir/contenir-resource, so a Mezzio site that does not run the full Contenir CMS can serve Contenir resources (pages, articles, collections):

The entities, repositories, resource manager and metadata builder live in contenir/contenir-resource and are framework neutral; this package is the Mezzio plumbing around them. It replaces the laminas-mvc parts of contenir/contenir-resource 1.x; see Coming from contenir-resource 1.x.

Requirements

Install

2.0 is a release candidate (2.0.0-RC1): contenir-db-model 2 is itself at RC and builds on php-db/phpdb 0.6, which has no stable release yet. Composer only honours stability flags in the root package, so a site needs these in its own composer.json:

Alternatively set "minimum-stability": "dev" with "prefer-stable": true in the site's composer.json and require contenir/contenir-resource-mezzio normally.

With laminas-component-installer the config providers are added automatically. Otherwise register all of them:

Wiring

1. Route resources through a workflow

Each resource is routed by the workflow plugin named in its workflow column (page when empty). The default PageWorkflow has no handler, so register your own:

and add it to the WorkflowPluginManager (for example as the page alias). See Routing and navigation.

2. Pipe the middleware after routing

3. Use the resource in the handler

What is in the package

Class Purpose
Workflow\ResourceStrategy workflow-mezzio strategy: workflow from the workflow column; navigation label, visibility and lastmod from the resource
Workflow\ResourceTreeAdapter workflow-mezzio resource adapter over ResourceRepository::findPageTree()
Workflow\ResourceTypesAdapter workflow-mezzio resource adapter over every published resource of the types workflow_manager.resource_types lists (default ['page']), wherever each sits
Workflow\WorkflowResource A resource entity presented as a workflow-mezzio ResourceInterface
Middleware\ResourceMiddleware Resolves the routed resource; 404s missing or unpublished ones; attaches resource and PageMetadata
ResourceAttribute Reads the attached resource (resource(), require()) and metadata (metadata())
Url\ResourceUrlGenerator Resource links through the router, editor-entered links through ExternalUrl
Content\TemplateSectionRenderer Renders section content with the template renderer, for ResourceSummary
Preview\WorkflowPageResolver Which middleware shows a page the CMS previews
View\Helper\ResourceHelper, ResourceMetaHelper, ResourceUrlHelper, ResourceContentHelper Optional laminas-view helpers
ConfigProvider, Container\*Factory Container wiring

Every concrete class is final. The docs cover each area:

Security

Development

The QA toolchain is contenir/contenir-qa-tools. Mago is a standalone binary, installed separately (brew install mago).

License

BSD-3-Clause. See LICENSE.md.


All versions of contenir-resource-mezzio with dependencies

PHP Build Version
Package Version
Requires php Version ~8.3.0 || ~8.4.0 || ~8.5.0
contenir/contenir-db-model Version ^2.0.0-rc5
contenir/contenir-metadata Version ^2.0
contenir/contenir-resource Version ^2.0.0-RC8
contenir/contenir-workflow-mezzio Version ^2.1
laminas/laminas-cache Version ^3.12
laminas/laminas-servicemanager Version ^3.22
mezzio/mezzio Version ^3.18
mezzio/mezzio-router Version ^3.17
mezzio/mezzio-template Version ^2.10
psr/container Version ^1.1 || ^2.0
psr/http-message Version ^1.1 || ^2.0
psr/http-server-handler Version ^1.0.2
psr/http-server-middleware Version ^1.0.2
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package contenir/contenir-resource-mezzio contains the following files

Loading the files please wait ...