PHPackages                             drago-ex/parameters - 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. drago-ex/parameters

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

drago-ex/parameters
===================

A simple Nette extension for accessing common directory paths (appDir, wwwDir, tempDir) in your application via dependency injection.

v2.0.0(1mo ago)01.2kMITPHPPHP &gt;=8.3 &lt;9CI passing

Since Oct 9Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/drago-ex/parameters)[ Packagist](https://packagist.org/packages/drago-ex/parameters)[ RSS](/packages/drago-ex-parameters/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (8)Dependencies (13)Versions (10)Used By (0)

Drago Parameters
================

[](#drago-parameters)

A lightweight extension for managing application directory paths (such as application, public, and temporary directories) within a Nette-based project. Provides a simple way to access these paths via dependency injection.

[![License: MIT](https://camo.githubusercontent.com/fdf2982b9f5d7489dcf44570e714e3a15fce6253e0cc6b5aa61a075aac2ff71b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d79656c6c6f772e737667)](https://github.com/drago-ex/parameters/blob/master/license)[![PHP version](https://camo.githubusercontent.com/6559bc22157513e8f3d6d323c353e95aa916eb55598f875496b0e67fd34f033d/68747470733a2f2f62616467652e667572792e696f2f70682f647261676f2d6578253246706172616d65746572732e737667)](https://badge.fury.io/ph/drago-ex%2Fparameters)[![Tests](https://github.com/drago-ex/parameters/actions/workflows/tests.yml/badge.svg)](https://github.com/drago-ex/parameters/actions/workflows/tests.yml)[![Coding Style](https://github.com/drago-ex/parameters/actions/workflows/coding-style.yml/badge.svg)](https://github.com/drago-ex/parameters/actions/workflows/coding-style.yml)

Requirements
------------

[](#requirements)

- PHP &gt;= 8.3
- Nette Framework
- Composer

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

[](#installation)

```
composer require drago-ex/parameters

```

Extension Registration
----------------------

[](#extension-registration)

To enable the Parameters extension in your Nette project, add the following configuration to your neon file. This registers the `ParametersExtension` and injects paths to the application, public, and temporary directories.

```
extensions:
	- Drago\Parameters\DI\ParametersExtension(appDir: %appDir%, wwwDir: %wwwDir%, tempDir: %tempDir%)
```

This will automatically inject the directory paths as services into your project.

Accessing Directories in Your Application
-----------------------------------------

[](#accessing-directories-in-your-application)

Once registered, you can access the directory paths throughout your application using the following properties:

Application Directory
---------------------

[](#application-directory)

To get the path to your application's directory (usually the root directory of your app), use:

```
$this->appDir;
```

Public Directory
----------------

[](#public-directory)

To get the path to your public directory (e.g., the `www` or `public` directory):

```
$this->wwwDir;
```

Temporary Directory
-------------------

[](#temporary-directory)

To get the path to the temporary directory (where cache or logs might be stored):

```
$this->tempDir;
```

###  Health Score

53

—

FairBetter than 96% of packages

Maintenance93

Actively maintained with recent releases

Popularity17

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity79

Established project with proven stability

 Bus Factor1

Top contributor holds 99.5% 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 ~302 days

Recently: every ~255 days

Total

9

Last Release

34d ago

Major Versions

v1.0.7 → v2.0.02026-05-21

PHP version history (6 changes)v1.0.0PHP &gt;=7.1

v1.0.2PHP &gt;=7.4

v1.0.3PHP &gt;=8.0

v1.0.4PHP &gt;=8.1

v1.0.5PHP &gt;=8.1 &lt;8.4

v1.0.6PHP &gt;=8.3 &lt;9

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5998929?v=4)[Zdeněk Papučík](/maintainers/accgit)[@accgit](https://github.com/accgit)

---

Top Contributors

[![accgit](https://avatars.githubusercontent.com/u/5998929?v=4)](https://github.com/accgit "accgit (214 commits)")[![codacy-badger](https://avatars.githubusercontent.com/u/23704769?v=4)](https://github.com/codacy-badger "codacy-badger (1 commits)")

---

Tags

netteparameters

### Embed Badge

![Health badge](/badges/drago-ex-parameters/health.svg)

```
[![Health](https://phpackages.com/badges/drago-ex-parameters/health.svg)](https://phpackages.com/packages/drago-ex-parameters)
```

###  Alternatives

[nette/php-generator

🐘 Nette PHP Generator: generates neat PHP code for you. Supports new PHP 8.5 features.

2.3k69.7M716](/packages/nette-php-generator)[symplify/monorepo-builder

Not only Composer tools to build a Monorepo.

5255.7M110](/packages/symplify-monorepo-builder)[nette/component-model

⚛ Nette Component Model

28716.8M101](/packages/nette-component-model)[contributte/di

Extra contrib to nette/di

465.9M18](/packages/contributte-di)[brandembassy/slim-nette-extension

19198.2k](/packages/brandembassy-slim-nette-extension)[shopsys/coding-standards

Coding standards definition compatible with PSR-2

20276.8k20](/packages/shopsys-coding-standards)

PHPackages © 2026

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