PHPackages                             ajbdev/requirejs - 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. ajbdev/requirejs

AbandonedLibrary

ajbdev/requirejs
================

RequireJS is a JavaScript file and module loader.

2307JavaScript

Since Jul 8Pushed 13y ago1 watchersCompare

[ Source](https://github.com/ajbdev/requirejs)[ Packagist](https://packagist.org/packages/ajbdev/requirejs)[ RSS](/packages/ajbdev-requirejs/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependenciesVersions (1)Used By (0)

RequireJS
=========

[](#requirejs)

RequireJS loads plain JavaScript files as well as more defined modules. It is optimized for in-browser use, including in [a Web Worker](http://requirejs.org/docs/api.html#webworker), but it can be used in other JavaScript environments, like Rhino and [Node](http://requirejs.org/docs/node.html). It implements the [Asynchronous Module](https://github.com/amdjs/amdjs-api/wiki/AMD)API.

RequireJS uses plain script tags to load modules/files, so it should allow for easy debugging. It can be used [simply to load existing JavaScript files](http://requirejs.org/docs/api.html#jsfiles), so you can add it to your existing project without having to re-write your JavaScript files.

RequireJS includes [an optimization tool](http://requirejs.org/docs/optimization.html)you can run as part of your packaging steps for deploying your code. The optimization tool can combine and minify your JavaScript files to allow for better performance.

If the JavaScript file defines a JavaScript module via [define()](http://requirejs.org/docs/api.html#define), then there are other benefits RequireJS can offer: [improvements over traditional CommonJS modules](http://requirejs.org/docs/commonjs.html)and [loading multiple versions](http://requirejs.org/docs/api.html#multiversion)of a module in a page. RequireJS also has a plugin system that supports features like [i18n string bundles](http://requirejs.org/docs/api.html#i18n), and [text file dependencies](http://requirejs.org/docs/api.html#text).

RequireJS does not have any dependencies on a JavaScript framework. It is dual-licensed -- new BSD or MIT.

The standard require.js file is around 5.5KB when minified via Closure Compiler and gzipped.

RequireJS works in IE 6+, Firefox 2+, Safari 3.2+, Chrome 3+, and Opera 10+.

[Latest Release](http://requirejs.org/docs/download.html)

Directories
-----------

[](#directories)

- **dist**: Scripts and assets to generate the requirejs.org docs, and for generating a require.js release.
- **docs**: The raw HTML files for the requirejs.org docs. Only includes the body of each page. Files in **dist** are used to generate a complete HTML page.
- **tests**: Tests for require.js.
- **testBaseUrl.js**: A file used in the tests inside **tests**. Purposely placed outside the tests directory for testing paths that go outside a baseUrl.
- **updatesubs.sh**: Updates projects that depend on require.js Assumes the projects are siblings to this directory and have specific names. Useful to copy require.js to dependent projects easily while in development.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

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

### Community

Maintainers

![](https://www.gravatar.com/avatar/7b0842f020a6b6eb2158be81dd79dae672267fada8c073ee5861febfcbfbfbbe?d=identicon)[ajbdev](/maintainers/ajbdev)

---

Top Contributors

[![jrburke](https://avatars.githubusercontent.com/u/73359?v=4)](https://github.com/jrburke "jrburke (810 commits)")[![kriszyp](https://avatars.githubusercontent.com/u/34054?v=4)](https://github.com/kriszyp "kriszyp (4 commits)")[![neonstalwart](https://avatars.githubusercontent.com/u/84763?v=4)](https://github.com/neonstalwart "neonstalwart (3 commits)")[![fitzgen](https://avatars.githubusercontent.com/u/74571?v=4)](https://github.com/fitzgen "fitzgen (2 commits)")[![normanzb](https://avatars.githubusercontent.com/u/130634?v=4)](https://github.com/normanzb "normanzb (2 commits)")[![jaysoo](https://avatars.githubusercontent.com/u/53559?v=4)](https://github.com/jaysoo "jaysoo (1 commits)")[![johnjbarton](https://avatars.githubusercontent.com/u/205570?v=4)](https://github.com/johnjbarton "johnjbarton (1 commits)")[![knuton](https://avatars.githubusercontent.com/u/47458?v=4)](https://github.com/knuton "knuton (1 commits)")[![liangzan](https://avatars.githubusercontent.com/u/40402?v=4)](https://github.com/liangzan "liangzan (1 commits)")[![millermedeiros](https://avatars.githubusercontent.com/u/155633?v=4)](https://github.com/millermedeiros "millermedeiros (1 commits)")[![probins](https://avatars.githubusercontent.com/u/283514?v=4)](https://github.com/probins "probins (1 commits)")[![riebel](https://avatars.githubusercontent.com/u/818476?v=4)](https://github.com/riebel "riebel (1 commits)")[![shannonmoeller](https://avatars.githubusercontent.com/u/155164?v=4)](https://github.com/shannonmoeller "shannonmoeller (1 commits)")[![SlexAxton](https://avatars.githubusercontent.com/u/96554?v=4)](https://github.com/SlexAxton "SlexAxton (1 commits)")[![ajbdev](https://avatars.githubusercontent.com/u/572055?v=4)](https://github.com/ajbdev "ajbdev (1 commits)")[![speier](https://avatars.githubusercontent.com/u/415836?v=4)](https://github.com/speier "speier (1 commits)")[![amylo](https://avatars.githubusercontent.com/u/1828667?v=4)](https://github.com/amylo "amylo (1 commits)")[![archive](https://avatars.githubusercontent.com/u/351045?v=4)](https://github.com/archive "archive (1 commits)")[![gregersrygg](https://avatars.githubusercontent.com/u/149725?v=4)](https://github.com/gregersrygg "gregersrygg (1 commits)")[![JamieMason](https://avatars.githubusercontent.com/u/320492?v=4)](https://github.com/JamieMason "JamieMason (1 commits)")

### Embed Badge

![Health badge](/badges/ajbdev-requirejs/health.svg)

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

PHPackages © 2026

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