Download the PHP package stolt/config-cartographer without Composer

On this page you can find all versions of the php package stolt/config-cartographer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package config-cartographer

config-cartographer

Discover, trace, and visualise application configuration dependencies across PHP projects.

Why?

PHP applications scatter configuration across multiple layers: .env files declare variables, framework config files reference them, and application code reads them through getenv(), $_ENV, or framework helpers. When a value changes — or when onboarding to an unfamiliar codebase — it's challenging to answer: "Where is this variable used, and what breaks if I change it?"

config-cartographer statically maps these cross-layer relationships with source-level evidence. It never executes the target application, never exposes secret values, and never claims complete runtime knowledge — only what static analysis can confidently observe.

Installation

Via Composer (dev dependency)

Usage

Commands

Command Description
scan Discover all configuration declarations and references.
trace Trace all usages of a specific environment variable.
graph Generate a dependency graph in Mermaid or JSON format.

scan — Discover configuration

Finds all environment variable declarations, configuration key references, and direct PHP environment access in a project.

Example output:

trace — Trace a variable

Shows all declarations, configuration keys, and PHP references for a specific environment variable.

Example output:

graph — Generate a dependency graph

Produces a Mermaid flowchart or JSON representation of the configuration dependency graph.

Example Mermaid output:

Options and flags

All commands support these common options:

Option Description
--path Path to project root (default: current directory)
--format Output format: console, json, or mermaid
--variable Filter graph output to a single environment variable (graph)

Supported Reference Patterns

Pattern Collector Confidence
.env key declarations DotenvCollector observed
%env(NAME)% in YAML SymfonyYamlCollector observed
%env(resolve:NAME)% in YAML SymfonyYamlCollector observed
env('NAME') in Laravel config LaravelConfigCollector observed
getenv('NAME') in PHP PhpEnvironmentCollector observed
$_ENV['NAME'] in PHP PhpEnvironmentCollector observed
$_SERVER['NAME'] in PHP PhpEnvironmentCollector observed
getenv($name) (dynamic) PhpEnvironmentCollector unresolved

Confidence Levels

Security Model

Limitations

AI disclaimer

This package is developed with the assistance of Artificial Intelligence (AI). AI tools are used throughout the development process, including code generation, documentation, testing, and maintenance.

While reasonable care is taken to review and validate AI-generated contributions, AI-generated code is not inherently correct, secure, or free of defects. All contributions remain subject to human review and project quality standards.

As with any software, use this package at your own risk. No guarantee is made regarding its fitness for a particular purpose, and the maintainers assume no liability for damages resulting from its use.

Contributing

If you're considering contributing to this project, have a look at this repository's CONTRIBUTING.md for more advice.

License

This library and its CLI are licensed under the MIT license. Please see LICENSE.md for more details.

Changelog

All noteworthy changes are documented in the CHANGELOG.md.


All versions of config-cartographer with dependencies

PHP Build Version
Package Version
Requires php Version >=8.3
symfony/console Version ^6.4|^7.0
symfony/finder Version ^6.4|^7.0
symfony/yaml Version ^6.4|^7.0
nikic/php-parser Version ^5.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package stolt/config-cartographer contains the following files

Loading the files please wait ...