PHPackages                             rwoverdijk/sxrequirejs - 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. rwoverdijk/sxrequirejs

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

rwoverdijk/sxrequirejs
======================

A RequireJS module for Zend Framework 2.

13601JavaScript

Since Aug 30Pushed 13y ago3 watchersCompare

[ Source](https://github.com/RWOverdijk/SxRequireJs)[ Packagist](https://packagist.org/packages/rwoverdijk/sxrequirejs)[ RSS](/packages/rwoverdijk-sxrequirejs/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

SxRequireJs
===========

[](#sxrequirejs)

Version 0.1.0 Created by Wesley Overdijk

Introduction
------------

[](#introduction)

This is a simple RequireJS module for [Zend Framework 2 (from here referred to as ZF2)](https://github.com/zendframework/zf2). It allows you to use RequireJs within ZF2 by setting up modules / paths and adding applications.

Installation
------------

[](#installation)

### Composer (recommended)

[](#composer-recommended)

The recommended way to get this module working, is to add it to your `composer.json`, and then doing a `php composer.phar update`.

### Git clone installation

[](#git-clone-installation)

1. Clone this module into your `vendor` directory. `(usually /path/to/application/vendor)` like this:

```
cd my/project/dir/vendor
git clone git://github.com/RWOverdijk/SxRequireJs.git

```

2. Enable this module in your `application.config.php`.

### Getting it working

[](#getting-it-working)

SxRequireJs doesn't work out of the box. It has its own `public` directory and therefore the RequireJS file will not be accessible. To get this working, there are a couple of things you can do.

1. Add an `AliasMatch` to your vhost (recommended). Example: `AliasMatch ^/([a-zA-Z0-9]+)/(css|img|js)/(.*) /Path/To/Your/Application/module/$1/public/$2/$3`*Note: This does require you to add a directory to your vhost to allow access outside of your DocumentRoot.*
2. Copy the js in the public directory to your application's public directory.
3. Set up symbolic links to map the module's public dir to the application's public dir
4. Write an .htaccess that allows access to module public directories

Usage and configuration
-----------------------

[](#usage-and-configuration)

You can find more information, the configuration options and some usage examples in [the SxRequireJs wiki](https://github.com/RWOverdijk/SxRequireJs/wiki).

TODO
----

[](#todo)

- Format generated output (white spaces)
- Add versions support in a intuitive manner
- translate support
- Building translation files from Zend\\I18n\\Translate
- Build in optimizer support

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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://avatars.githubusercontent.com/u/781745?v=4)[Roberto Wesley Overdijk](/maintainers/RWOverdijk)[@RWOverdijk](https://github.com/RWOverdijk)

---

Top Contributors

[![RWOverdijk](https://avatars.githubusercontent.com/u/781745?v=4)](https://github.com/RWOverdijk "RWOverdijk (42 commits)")

### Embed Badge

![Health badge](/badges/rwoverdijk-sxrequirejs/health.svg)

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

PHPackages © 2026

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