PHPackages                             xanweb/c5-foundation - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. xanweb/c5-foundation

ActiveLibrary[Framework](/categories/framework)

xanweb/c5-foundation
====================

ConcreteCMS Foundation

v2.1.6(9mo ago)0822MITPHPPHP &gt;=7.4

Since Feb 19Pushed 9mo ago5 watchersCompare

[ Source](https://github.com/Xanweb/c5-foundation)[ Packagist](https://packagist.org/packages/xanweb/c5-foundation)[ RSS](/packages/xanweb-c5-foundation/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (10)Dependencies (4)Versions (22)Used By (0)

ConcreteCMS Foundation
======================

[](#concretecms-foundation)

[![Latest Version on Packagist](https://camo.githubusercontent.com/3675d2f6180a18a7f96e818f485513a25e47e329fb893a56662623ddfbe254ba/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f78616e7765622f63352d666f756e646174696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/xanweb/c5-foundation)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)

Installation
------------

[](#installation)

Include library to your composer.json

```
composer require xanweb/c5-foundation
```

How to use Image Data Extractor
-------------------------------

[](#how-to-use-image-data-extractor)

Data Extractor tries to use both IPTC and EXIF metadata to fill image information.

Register importer processor within `application/config/app.php`

```
return [
    /*
     * Importer processors
     */
    'import_processors' => [
        'xw.image.data_extractor' => \Xanweb\C5\Foundation\File\Import\Processor\DataExtractor::class,
    ],
];
```

You need then to map image information to properties or attributes.
Here is the list of available information keys:

- `image_title`: title of the image
- `artist`: artist name
- `author_title`: author name
- `keywords`
- `image_description`
- `comments`
- `copyright`

The default mapping is like follows:

```
[
    'image_title' => 'title', // mapped to file title property
    'comments' => 'description', // mapped to file description property
    'keywords' => 'tags', // mapped to file tags property
]
```

To override the default mapping you need to add `xanweb.php` config file under `/application/config`.
Here is an example of possible mapping:

```
