Download the PHP package contenir/contenir-resource without Composer

On this page you can find all versions of the php package contenir/contenir-resource. 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

contenir/contenir-resource

Continuous Integration codecov

The framework-neutral core for Contenir resources (the pages, articles and other content rows of a Contenir site), built on contenir-db-model 2:

It has no framework dependency: no Mezzio, PSR-7/PSR-15, laminas-mvc or routing. Use it through an adapter:

Version 2.0 is a rewrite and is not compatible with 1.x; see UPGRADE.md.

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 normally.

With laminas-component-installer the Contenir\Resource\Core\ConfigProvider is added to your configuration automatically. It registers its services under dependencies; contenir-db-model's own ConfigProvider supplies the EntityManager.

Quick start

Configuration

Everything is optional and lives under contenir_resource:

A key that is present with a value of the wrong type is a ConfigurationException, never silently ignored.

Public API

Class Purpose
Entity\AbstractResourceEntity, Entity\ResourceEntity Resource rows; metadata, navigation and routing accessors
Entity\AbstractResourceCollectionEntity, Entity\ResourceCollectionEntity Collection rows
Entity\AbstractResourceTypeEntity, Entity\ResourceTypeEntity Resource type rows
Entity\ResourceStatus The active column: pending, active, inactive, archived
Repository\ResourceRepository Finders and findPageTree()
Repository\ResourceCollectionRepository, Repository\ResourceTypeRepository Finders
ResourceManagerInterface, ResourceManager Lookups by id, slug, workflow, type; collections by type
Metadata\PageMetadataBuilder, Metadata\PageMetadata The head metadata of one page
Metadata\MetaTagRenderer Escaped HTML for any template engine
Metadata\MetaText Plain-text cleaning, summaries and keywords
Metadata\ImageUrlResolverInterface, Metadata\PathImageUrlResolver Share image URLs
Content\ResourceSummary, Content\SectionAwareInterface, Content\SectionRendererInterface Plain-text summaries
Url\ExternalUrl, Url\ResourceLink Safe editor-entered links
ConfigProvider, Container\*Factory Container wiring

Every concrete class is final; the abstract entities and the interfaces are the extension points.

The docs folder covers each area:

Development

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

License

BSD-3-Clause. See LICENSE.md.


All versions of contenir-resource 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@RC
contenir/contenir-metadata Version ^2.0
psr/container Version ^1.1 || ^2.0
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 contains the following files

Loading the files please wait ...