PHPackages                             alfredbez/oxid-dump-autoload - 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. alfredbez/oxid-dump-autoload

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

alfredbez/oxid-dump-autoload
============================

0.5.0(5y ago)326.8k—8.3%3[6 issues](https://github.com/alfredbez/oxid-dump-autoload/issues)[2 PRs](https://github.com/alfredbez/oxid-dump-autoload/pulls)2PHP

Since Nov 20Pushed 4y agoCompare

[ Source](https://github.com/alfredbez/oxid-dump-autoload)[ Packagist](https://packagist.org/packages/alfredbez/oxid-dump-autoload)[ RSS](/packages/alfredbez-oxid-dump-autoload/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (4)Versions (8)Used By (2)

[![codecov](https://camo.githubusercontent.com/812631ae51816f672723eba6391fd28d8105840532d67b6440dbaedd527e4908/68747470733a2f2f636f6465636f762e696f2f67682f616c6672656462657a2f6f7869642d64756d702d6175746f6c6f61642f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/alfredbez/oxid-dump-autoload)

Description
===========

[](#description)

Sometimes it's helpful to have the module-chain which is saved in the oxid database in a simple php file on the disk, e.g. for running static code analysis or to tell your IDE where to find a `*_parent` class. This little Tool allows you to generate a php-file which consinst of all `class_alias` statements used inside the shop.

Could be used for example in `phpstan` like this:

```
$ cat phpstan.neon
parameters:
    level: 0
    autoload_files:
    scanFiles:
    - %currentWorkingDirectory%/source/oxfunctions.php
    - %currentWorkingDirectory%/source/overridablefunctions.php
    bootstrapFiles:
    - %currentWorkingDirectory%/vendor/oxid-esales/oxideshop-ce/source/Core/Model/BaseModel.php
    - %currentWorkingDirectory%/.autoload.oxid.php

```

Make sure to use `bootstrapFiles` since the file contains a list of `class_alias()` statements.

Usage example for `psalm`:

```
$ cat .autoload.php

```

Installation
============

[](#installation)

```
composer require --dev alfredbez/oxid-dump-autoload

```

Usage
=====

[](#usage)

`vendor/bin/oxid-dump-autoload --help` shows you the general usage info.

To generate a `autoload.oxid.php` inside your current working directory add `-p autoload.oxid.php` to the command.

Options
-------

[](#options)

### Source

[](#source)

The script uses the class-chain from the shop as default, but you can also generate the autoload-files for a module by specifying a path to the `metadata.php`:

```
vendor/bin/oxid-dump-autoload --source path/to/my/module/metadata.php

```

### Filter

[](#filter)

You can filter classes from the chain like so:

```
vendor/bin/oxid-dump-autoload --filter oe/,ddoe/

```

### Specifying a shop-id

[](#specifying-a-shop-id)

```
vendor/bin/oxid-dump-autoload --shopid 5

```

### Write to a file instead of STDOUT

[](#write-to-a-file-instead-of-stdout)

```
vendor/bin/oxid-dump-autoload -p .autoload.oxid.php
vendor/bin/oxid-dump-autoload > .autoload.oxid.php # basically the same

```

### Provide path to `bootstrap.php`

[](#provide-path-to-bootstrapphp)

If the script is not able to find the shops `bootstrap.php` you can provide the path via the environment variable `BOOTSTRAP_PATH`:

```
BOOTSTRAP_PATH=$(pwd)/source/bootstrap.php vendor/bin/oxid-dump-autoload

```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 90% 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 ~38 days

Recently: every ~4 days

Total

7

Last Release

2134d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/75f1c0724600a0044a3097d21cef1c13cb1a67bff6be63b2e2bc11784368827f?d=identicon)[alfredbez](/maintainers/alfredbez)

---

Top Contributors

[![alfredbez](https://avatars.githubusercontent.com/u/1001186?v=4)](https://github.com/alfredbez "alfredbez (18 commits)")[![keywan-ghadami-oxid](https://avatars.githubusercontent.com/u/7767623?v=4)](https://github.com/keywan-ghadami-oxid "keywan-ghadami-oxid (2 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/alfredbez-oxid-dump-autoload/health.svg)

```
[![Health](https://phpackages.com/badges/alfredbez-oxid-dump-autoload/health.svg)](https://phpackages.com/packages/alfredbez-oxid-dump-autoload)
```

###  Alternatives

[markstory/mini-asset

An asset compression library. Provides file concatenation and a flexible filter system for preprocessing and minification.

66741.1k3](/packages/markstory-mini-asset)[kubotak-is/php-del

Tool to remove code based on specific comments.

1640.8k](/packages/kubotak-is-php-del)[vanilla-thunder/oxid-module-devutils

developer utilities for OXID eShop

1723.3k](/packages/vanilla-thunder-oxid-module-devutils)[lochmueller/seocli

SEO CLI Tool

1113.4k](/packages/lochmueller-seocli)

PHPackages © 2026

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