PHPackages                             brookinsconsulting/hfpfetchrandom - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. brookinsconsulting/hfpfetchrandom

ActiveEzpublish-legacy-extension[Utility &amp; Helpers](/categories/utility)

brookinsconsulting/hfpfetchrandom
=================================

eZ Publish Legacy custom content fetch module extension which provides a stable and flexible solution which allows for fetching of randomized content tree node objects. Provides for randomized content tree node fetch results!

161PHP

Since Jan 29Pushed 9y ago1 watchersCompare

[ Source](https://github.com/brookinsconsulting/hfpfetchrandom)[ Packagist](https://packagist.org/packages/brookinsconsulting/hfpfetchrandom)[ RSS](/packages/brookinsconsulting-hfpfetchrandom/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Hfp Fetch Random
================

[](#hfp-fetch-random)

Fetches the random children of a node or a collection of nodes.

Version
=======

[](#version)

- The current version of Hfp Fetch Random is 0.2.0
- Last Major update: January 28, 2017

### Original Author

[](#original-author)

LIU Bin

Copyright
=========

[](#copyright)

- Hfp Fetch Random is copyright 1999 - 2017 Brookins Consulting and LIU Bin
- See: [COPYRIGHT.md](COPYRIGHT.md) for more information on the terms of the copyright and license

License
=======

[](#license)

Hfp Fetch Random is licensed under the GNU General Public License.

The complete license agreement is included in the [LICENSE](LICENSE) file.

Hfp Fetch Random is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License or at your option a later version.

Hfp Fetch Random is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

The GNU GPL gives you the right to use, modify and redistribute Hfp Fetch Random under certain conditions. The GNU GPL license is distributed with the software, see the file doc/LICENSE.

It is also available at

You should have received a copy of the GNU General Public License along with Hfp Fetch Random in doc/LICENSE. If not, see .

Using Hfp Fetch Random under the terms of the GNU GPL is free (as in freedom).

For more information or questions please contact:

Requirements
============

[](#requirements)

The following requirements exists for using Hfp Fetch Random extension:

### eZ Publish version

[](#ez-publish-version)

- Make sure you use eZ Publish version 5.x (required) or higher.
- Designed and tested with eZ Publish Community Project GitHub Release tag (via composer) v2015.01.3

### PHP version

[](#php-version)

- Make sure you have PHP 5.x or higher.

Features
========

[](#features)

This solution provides the following:

- Custom Content Fetch Function Module
    - Fetch Random Content Tree Node Objects

Installation
============

[](#installation)

### Extension Installation via Composer

[](#extension-installation-via-composer)

Run the following command from your project root to install the extension:

```
bash$ composer require brookinsconsulting/hfpfetchrandom dev-master;

```

### Extension Activation

[](#extension-activation)

Activate this extension by adding the following to your `settings/override/site.ini.append.php`:

```
[ExtensionSettings]
#
ActiveExtensions[]=hfpfetchrandom

```

### Regenerate kernel class override autoloads

[](#regenerate-kernel-class-override-autoloads)

Regenerate autoloads (Required).

```
php ./bin/php/ezpgenerateautoloads.php;

```

### Clear the caches

[](#clear-the-caches)

Clear eZ Publish Platform / eZ Publish Legacy caches (Required).

```
php ./bin/php/ezcache.php --clear-all;

```

Configuration
=============

[](#configuration)

There are currently no configuration required.

Usage
=====

[](#usage)

The solution is configured to work virtually by default once properly installed.

- Add the fetch function provided into your template.

### Usage Options

[](#usage-options)

```
fetch( 'hfpfetchrandom', 'list',
 hash( 'parent_node_id',            parent_node_id,
     [ 'offset',                    offset,                    ]
     [ 'limit',                     limit,                     ]
     [ 'attribute_filter',          attribute_filter,          ]
     [ 'extended_attribute_filter', extended_attribute_filter, ]
     [ 'class_filter_type',         class_filter_type,         ]
     [ 'class_filter_array',        class_filter_array,        ]
     [ 'only_translated',           only_translated,           ]
     [ 'language',                  language,                  ]
     [ 'main_node_only',            main_node_only,            ]
     [ 'as_object',                 as_object,                 ]
     [ 'depth',                     depth,                     ]
     [ 'limitation',                limitation                 ]
     [ 'ignore_visibility',         ignore_visibility          ] ) )

```

#### Returns

[](#returns)

An array of ezcontentobjecttreenode objects or FALSE.

### Usage Example 1

[](#usage-example-1)

The following example hfpfetchrandom, list fetch usage fetches three folder node objects randomly.

```
{def $tests = fetch( 'hfpfetchrandom', 'list', hash( 'parent_node_id', 2,
                                                     'offset',0,
                                                     'limit',3,
                                                     'class_filter_type',  'include',
                                                     'class_filter_array', array('folder')
                                                     ) )}
{foreach $tests as $test}
  {$test.name}
{/foreach}

```

Troubleshooting
===============

[](#troubleshooting)

### Read the FAQ

[](#read-the-faq)

Some problems are more common than others. The most common ones are listed in the the [doc/FAQ.md](doc/FAQ.md)

### Support

[](#support)

If you have find any problems not handled by this document or the FAQ you can contact Brookins Consulting through the support system:

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/fda10bb840bcf345ab87d5ec5bd7c79da0be8858fc1b754db272ca1fc45e49e2?d=identicon)[brookinsconsulting](/maintainers/brookinsconsulting)

---

Top Contributors

[![brookinsconsulting](https://avatars.githubusercontent.com/u/617031?v=4)](https://github.com/brookinsconsulting "brookinsconsulting (4 commits)")[![wuzX56](https://avatars.githubusercontent.com/u/32549507?v=4)](https://github.com/wuzX56 "wuzX56 (2 commits)")

### Embed Badge

![Health badge](/badges/brookinsconsulting-hfpfetchrandom/health.svg)

```
[![Health](https://phpackages.com/badges/brookinsconsulting-hfpfetchrandom/health.svg)](https://phpackages.com/packages/brookinsconsulting-hfpfetchrandom)
```

###  Alternatives

[ozdemir/datatables

Simplify your Datatables server-side processing effortlessly using our lightning-fast PHP library, streamlining your workflow seamlessly.

273158.4k](/packages/ozdemir-datatables)[that0n3guy/transliteration

Transliteration provides one-way string transliteration (romanization) and cleans text by replacing unwanted characters.

1296.5k4](/packages/that0n3guy-transliteration)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
