PHPackages                             danielneis/moodle-block\_newblock - 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-block\_newblock

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

danielneis/moodle-block\_newblock
=================================

A block template for Moodle based on http://docs.moodle.org/dev/Blocks

44868↓60%351PHP

Since Oct 22Pushed 8y ago12 watchersCompare

[ Source](https://github.com/danielneis/moodle-block_newblock)[ Packagist](https://packagist.org/packages/danielneis/moodle-block_newblock)[ RSS](/packages/danielneis-moodle-block-newblock/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (1)

Moodle Block Template
=====================

[](#moodle-block-template)

This is a template for Moodle blocks.

It is used by Moosh () to generate new block plugins.

- This template assumes that the block is using a textual content type by default. If you want your block to display a list of items (using $this-&gt;content-&gt;items and $this-&gt;content-&gt;icons instead of $this-&gt;content-&gt;text), change the derived class of the block, from extends block\_base to extends block\_list. For more information: [https://docs.moodle.org/dev/Blocks#Additional\_Content\_Types](https://docs.moodle.org/dev/Blocks#Additional_Content_Types).
- Go to Settings &gt; Site Administration &gt; Development &gt; XMLDB editor and modify the module's tables.
- Modify version.php and set the initial version of you module.
- Visit Settings &gt; Site Administration &gt; Notifications, you should find the module's tables successfully created
- Go to Site Administration &gt; Plugins &gt; Blocks &gt; Manage blocks and you should find that this newblock has been added to the list of installed modules.
- You may now proceed to run your own code in an attempt to develop your module. You will probably want to modify block\_newmodule.php and edit\_form.php as a first step. Check db/access.php to add capabilities.

We encourage you to share your code and experience - visit

Good luck!

[![Build Status](https://camo.githubusercontent.com/f7eb3388863e6db4ef228306f7a03f2910c51180b6e21e406dc37dfabffff2fb/68747470733a2f2f7472617669732d63692e6f72672f64616e69656c6e6569732f6d6f6f646c652d626c6f636b5f6e6577626c6f636b2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/danielneis/moodle-block_newblock)

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community22

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 86.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/5bf615701d17d0b70fa2b79f02b76c90aba78a21469f8f907ea20a9bf266d144?d=identicon)[danielneis](/maintainers/danielneis)

---

Top Contributors

[![danielneis](https://avatars.githubusercontent.com/u/17608?v=4)](https://github.com/danielneis "danielneis (13 commits)")[![leac](https://avatars.githubusercontent.com/u/1826720?v=4)](https://github.com/leac "leac (1 commits)")[![nadavkav](https://avatars.githubusercontent.com/u/231168?v=4)](https://github.com/nadavkav "nadavkav (1 commits)")

### Embed Badge

![Health badge](/badges/danielneis-moodle-block-newblock/health.svg)

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

PHPackages © 2026

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