Skip to content

Releases: kaliop-uk/ezloremipsumbundle

1.6

21 Oct 09:49
Compare
Choose a tag to compare
  • Mark compatible with eZMigrationBundle 5.13 and later

  • Bump the version of faker used: we now use fakerphp/faker instead of fzaninotto/faker, and min. version is 1.9.1

  • Move from master to main branch

  • Introduce GitHub Actions for CI testing

  • Bump the version of phpunit used to run the tests from 4.x/5.x to 5.x/8.x

1.5

18 Dec 20:22
Compare
Choose a tag to compare
1.5
  • New: the bundle now includes a randomRichText provider. It works like randomXmlText, but for RichText fields used in eZPlatform. Thanks @crevillo

Add a new Faker modifier

26 May 15:00
Compare
Choose a tag to compare

New: the bundle now includes a custom Faker generator that registers the modifier maxDistinct($maxElements = 100, $reset = false)

This can be used when you want to limit a generated element to be limited to have a limited set of distinct values.
If can be f.e. useful when you generate images or files by querying remote services which impose limits on the number of calls that can be placed.
Eg: by using maxDistinct().picture, your code would only be retrieving 100 different pictures.
Please note that this modifier does not insure uniqueness of the results, but it can be combined with unique().

Support generation of PDF files

16 May 12:36
Compare
Choose a tag to compare

New features:

  • can generate PDF files with random content
  • can generate random nouns, adjectives and animals (all only in english)

Support XmlText fields

15 May 16:36
Compare
Choose a tag to compare

The bundle now supports the custom faker property randomXmlText that can be used to fill in XmlText content fields

The cambrian explosion

14 May 16:33
Compare
Choose a tag to compare
  • New: it is now possible to use modifiers in the faker references, eg:

      faker:unique().aProvider
      faker:optional().aProvider
      faker:valid().aProvider
    
  • New: it is now possible to use complex expressions in the parameters passed to the faker provider, eg:

      -
          type: loop
          repeat: 2
          steps:
              -
                  type: tag
                  mode: create
                  parent_tag_id: 2
                  lang: eng-GB
                  keywords:
                      eng-GB: "[faker: randomelement({0:"hello", 1:"world"})]"
    
      -
          type: reference
          mode: set
          identifier: aaa
          value: 'hello world'
      -
          type: loop
          repeat: 2
          steps:
              -
                  type: tag
                  mode: create
                  parent_tag_id: 2
                  lang: eng-GB
                  keywords:
                      eng-GB: "[faker: shuffle(resolve('reference:aaa'))]"
    
  • New: it is now possible register custom Faker providers via the parameter ez_loremipsum_bundle.faker.providers

  • New: the bundle now includes a custom Faker providers that registers the picture and pictureUrl properties.
    Those behave almost exactly like the native image and imageUrl ones, except for not supporting the category'. They retrieve the images from service picsum.photos instead of lorempixel.

Hello world

11 May 12:39
Compare
Choose a tag to compare

All the info is in the readme :-)