Download the PHP package contenir/contenir-asset without Composer
On this page you can find all versions of the php package contenir/contenir-asset. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package contenir-asset
contenir-asset
Asset records, file storage, image derivatives and view helpers for
laminas-mvc and Mezzio applications, built on
contenir-db-model 2.x.
The package itself needs no framework: it registers through a
ConfigProvider (Mezzio) or Module (laminas-mvc), and the resize route
for the legacy .WxH scheme comes from the matching adapter,
contenir-asset-laminas-mvc
or contenir-asset-mezzio.
AssetManager. Create, store, update, sequence and delete asset records and their files.- Image derivatives. A large copy and a thumbnail are generated through ImageMagick on upload.
- View helpers:
asset(),assetUrl(),assetSize(),assetAspect()andassetSizes();- the legacy
assetSrcSet(), with its on-demand resizer.
Status: 2.0 pre-release. 2.0 is not compatible with 1.x. See UPGRADE-2.0.md.
Requirements
- PHP 8.3, 8.4 or 8.5
contenir/contenir-db-model2.x and aphp-db/phpdbplatform package- laminas-view 2 (which Mezzio's laminas-view renderer and laminas-mvc both bring)
- ImageMagick (
convert) for image derivatives ext-intl(recommended) for transliterating accented file names
Installation
The consuming project needs "minimum-stability": "dev" and
"prefer-stable": true until php-db/phpdb 0.6.0 is tagged. With the
laminas component installer the package registers itself: as the
Contenir\Asset module in laminas-mvc, as Contenir\Asset\ConfigProvider
in Mezzio. Add the adapter for your framework to get the legacy resize
route: contenir/contenir-asset-laminas-mvc or
contenir/contenir-asset-mezzio.
At a glance
Documentation
- Configuration: every
assetoption and the reference table schema - AssetManager: creating, storing, updating, sequencing and deleting assets
- View helpers:
asset,assetUrl,assetSize,assetAspect,assetSizes - Legacy resizer: the deprecated
.WxHscheme,assetSrcSetand its resize route
Upgrading from 1.x: UPGRADE-2.0.md. Changes:
llms.txt indexes the docs for
LLM tooling.
Development
Mago is required (brew install mago).
License
BSD-3-Clause. See LICENSE.md.
All versions of contenir-asset with dependencies
contenir/contenir-db-model Version ^2.0@RC
laminas/laminas-escaper Version ^2.13
laminas/laminas-permissions-acl Version ^2.16
laminas/laminas-servicemanager Version ^3.22 || ^4.0
laminas/laminas-view Version ^2.35
psr/container Version ^1.1 || ^2.0
psr/log Version ^2.0 || ^3.0