PHPackages                             danielneis/moodle-availability\_maxviews - 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. danielneis/moodle-availability\_maxviews

ActiveMoodle-availability[Utility &amp; Helpers](/categories/utility)

danielneis/moodle-availability\_maxviews
========================================

An availability condition for Moodle that limits the number of views of an activity by users

8(2y ago)6329[1 PRs](https://github.com/danielneis/moodle-availability_maxviews/pulls)GPL-3.0-or-laterPHP

Since Jul 26Pushed 2y ago4 watchersCompare

[ Source](https://github.com/danielneis/moodle-availability_maxviews)[ Packagist](https://packagist.org/packages/danielneis/moodle-availability_maxviews)[ RSS](/packages/danielneis-moodle-availability-maxviews/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (9)Used By (0)

Maximum views Availability Condition for Moodle
-----------------------------------------------

[](#maximum-views-availability-condition-for-moodle)

An availability condition for Moodle that limits the number of views of an activity by users

Install
-------

[](#install)

- Put these files at moodle/availability/condition/maxviews/
- You may use composer
- or git clone
- or download the latest version from [https://github.com/danielneis/moodle-availability\_maxviews/archive/master.zip](https://github.com/danielneis/moodle-availability_maxviews/archive/master.zip)
- Log in your Moodle as Admin and go to "Notifications" page
- Follow the instructions to install the plugin
- Disable Legacy logs for this plugin to work correctly.

Usage
-----

[](#usage)

- Go to a course, turn edit on, choose a module to add or edit
- In the 'Availability restrictions' section you'll be able to add a "Max views" condition.
- This type of condition allows you to set a maximum number of views that will be accounted for each user and after the user access the content that many times, he/she will not be able to access it anymore.

This block is tested with the following plugins and is working:

- Assignment
- File
- Forum
- Lesson
- Page
- URL

This block is also tested with the following plugins that are not working:

- Book
- Label
- Wiki

If you are interested in using this plugin with the ones that are not working please take a look at #2.

Dev Info
--------

[](#dev-info)

Please, report issues at: [https://github.com/danielneis/moodle-availability\_maxviews/issues](https://github.com/danielneis/moodle-availability_maxviews/issues)

Feel free to send pull requests at: [https://github.com/danielneis/moodle-availability\_maxviews/pulls](https://github.com/danielneis/moodle-availability_maxviews/pulls)

[![Build Status](https://camo.githubusercontent.com/a5bfc8941987b36f0168080bbb96d2de07d7329a0dae75f25ae62cbc8278f399/68747470733a2f2f7472617669732d63692e6f72672f64616e69656c6e6569732f6d6f6f646c652d617661696c6162696c6974795f6d617876696577732e737667)](https://travis-ci.org/danielneis/moodle-availability_maxviews)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/88ef5f1039f1f7a1f678f50d0213afe79f3b981b3a9552abce7077f7bf8b3103/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f64616e69656c6e6569732f6d6f6f646c652d617661696c6162696c6974795f6d617876696577732f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/danielneis/moodle-availability_maxviews/?branch=master)

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 91.4% 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.

###  Release Activity

Cadence

Every ~482 days

Recently: every ~652 days

Total

7

Last Release

1047d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5bf615701d17d0b70fa2b79f02b76c90aba78a21469f8f907ea20a9bf266d144?d=identicon)[danielneis](/maintainers/danielneis)

---

Top Contributors

[![danielneis](https://avatars.githubusercontent.com/u/17608?v=4)](https://github.com/danielneis "danielneis (64 commits)")[![andresmrg](https://avatars.githubusercontent.com/u/12041228?v=4)](https://github.com/andresmrg "andresmrg (3 commits)")[![IgorSFA](https://avatars.githubusercontent.com/u/5798886?v=4)](https://github.com/IgorSFA "IgorSFA (2 commits)")[![Badatos](https://avatars.githubusercontent.com/u/12731381?v=4)](https://github.com/Badatos "Badatos (1 commits)")

### Embed Badge

![Health badge](/badges/danielneis-moodle-availability-maxviews/health.svg)

```
[![Health](https://phpackages.com/badges/danielneis-moodle-availability-maxviews/health.svg)](https://phpackages.com/packages/danielneis-moodle-availability-maxviews)
```

###  Alternatives

[rainlab/blog-plugin

Blog plugin for October CMS

17257.7k](/packages/rainlab-blog-plugin)[rainlab/builder-plugin

Builder plugin for October CMS

17147.2k1](/packages/rainlab-builder-plugin)[pfefferle/wordpress-activitypub

The ActivityPub protocol is a decentralized social networking protocol based upon the ActivityStreams 2.0 data format.

5671.4k1](/packages/pfefferle-wordpress-activitypub)[civicrm/civicrm-drupal-8

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

18238.1k2](/packages/civicrm-civicrm-drupal-8)[mediawiki/semantic-glossary

A terminology markup extension with a Semantic MediaWiki back-end

1352.4k](/packages/mediawiki-semantic-glossary)[humanmade/lottie-lite

A lightweight Lottie Animations Extension for WordPress

374.3k](/packages/humanmade-lottie-lite)

PHPackages © 2026

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