PHPackages                             awps/loader - 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. awps/loader

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

awps/loader
===========

Simple loader that is designed to work with both classes and normal PHP files.

1.0.1(8y ago)051GPL-3.0+PHPPHP &gt;=5.3.0

Since Dec 18Pushed 8y ago1 watchersCompare

[ Source](https://github.com/awps/loader)[ Packagist](https://packagist.org/packages/awps/loader)[ RSS](/packages/awps-loader/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (2)DependenciesVersions (3)Used By (0)

### Loader

[](#loader)

A simple loader that is designed to work with both classes and normal PHP files.

### Installation

[](#installation)

#### With composer:

[](#with-composer)

```
composer require awps/loader
```

#### Manually:

[](#manually)

```
require_once 'getloader.php';
```

### Usage

[](#usage)

#### Load PHP classes:

[](#load-php-classes)

```
Awps\Loader::loadClasses( $path, $namespace );
```

This will autoload all PHP classes from `$path` and will assume that the namespace in those classes is `$namespace`;

#### Load simple PHP files:

[](#load-simple-php-files)

```
Awps\Loader::loadFiles( $path, $pattern );
```

This will autoload all php files from `$path` that contains `$pattern` in their name.

### Examples

[](#examples)

```
// Autoload classes from `inc` folder and set the namespace to `Awesome`
Awps\Loader::loadClasses( __DIR__ . 'inc', 'Awesome' );

// Now you can initialize a class. For example:
new Awesome\Something();

// -------------------------------------------------------

// Include all php files from `functions`
Awps\Loader::loadFiles( __DIR__ . 'functions', 'component-' );

// This one will include all php files that contains `component-` string in their name
// from `functions` directory.
// Now you may call a function defined in one of those files. For example:
do_something_special();
```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

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.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

3117d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1436534?v=4)[Andrei Surdu](/maintainers/awps)[@awps](https://github.com/awps)

---

Top Contributors

[![awps](https://avatars.githubusercontent.com/u/1436534?v=4)](https://github.com/awps "awps (5 commits)")

### Embed Badge

![Health badge](/badges/awps-loader/health.svg)

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

###  Alternatives

[activecampaign/module-integration

ActiveCampaign extension for Magento 2.3 and 2.4

1163.7k](/packages/activecampaign-module-integration)

PHPackages © 2026

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