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

9(2mo ago)6329[1 issues](https://github.com/danielneis/moodle-availability_maxviews/issues)[1 PRs](https://github.com/danielneis/moodle-availability_maxviews/pulls)GPL-3.0-or-laterPHPCI failing

Since Jul 26Pushed 2mo 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 today

READMEChangelogDependencies (2)Versions (10)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

49

—

FairBetter than 94% of packages

Maintenance84

Actively maintained with recent releases

Popularity15

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 91.9% 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 ~561 days

Recently: every ~903 days

Total

8

Last Release

63d 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 (68 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

[helsingborg-stad/municipio

A bootstrap theme for creating municipality sites.

4028.5k10](/packages/helsingborg-stad-municipio)[mediawiki/maps

Adds various mapping features to MediaWiki

84152.3k3](/packages/mediawiki-maps)[starcitizentools/citizen-skin

A beautiful, usable, responsive MediaWiki skin with in-depth extension support. Originally developed for the Star Citizen Wiki.

3376.6k](/packages/starcitizentools-citizen-skin)[civicrm/civicrm-drupal-8

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

19251.4k3](/packages/civicrm-civicrm-drupal-8)[altis/core

Core module for Altis

19228.0k3](/packages/altis-core)[pfefferle/wordpress-activitypub

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

5721.7k4](/packages/pfefferle-wordpress-activitypub)

PHPackages © 2026

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