{"id":15282147,"url":"https://github.com/drago-ex/parameters","last_synced_at":"2026-04-07T17:31:36.866Z","repository":{"id":56971801,"uuid":"44365129","full_name":"drago-ex/parameters","owner":"drago-ex","description":":open_file_folder: A simple Nette extension for accessing common directory paths (appDir, wwwDir, tempDir) in your application via dependency injection.","archived":false,"fork":false,"pushed_at":"2025-12-30T07:54:23.000Z","size":157,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-01T05:16:23.074Z","etag":null,"topics":["nette","parameters"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/drago-ex.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2015-10-16T05:54:48.000Z","updated_at":"2025-12-30T07:53:14.000Z","dependencies_parsed_at":"2023-12-01T08:39:42.834Z","dependency_job_id":"16d6c682-03e8-47d6-b5e3-c7d12c1313d2","html_url":"https://github.com/drago-ex/parameters","commit_stats":{"total_commits":190,"total_committers":4,"mean_commits":47.5,"dds":"0.021052631578947323","last_synced_commit":"6b1135be83c98a4c82d836e4c7010692529e20e5"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/drago-ex/parameters","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drago-ex%2Fparameters","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drago-ex%2Fparameters/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drago-ex%2Fparameters/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drago-ex%2Fparameters/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/drago-ex","download_url":"https://codeload.github.com/drago-ex/parameters/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drago-ex%2Fparameters/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31522235,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T16:28:08.000Z","status":"ssl_error","status_checked_at":"2026-04-07T16:28:06.951Z","response_time":105,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["nette","parameters"],"created_at":"2024-09-30T14:19:07.950Z","updated_at":"2026-04-07T17:31:36.838Z","avatar_url":"https://github.com/drago-ex.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Drago Parameters\r\nA lightweight extension for managing application directory paths (such as application, public, and temporary directories)\r\nwithin a Nette-based project. Provides a simple way to access these paths via dependency injection.\r\n\r\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://raw.githubusercontent.com/drago-ex/parameters/master/license)\r\n[![PHP version](https://badge.fury.io/ph/drago-ex%2Fparameters.svg)](https://badge.fury.io/ph/drago-ex%2Fparameters)\r\n[![Tests](https://github.com/drago-ex/parameters/actions/workflows/tests.yml/badge.svg)](https://github.com/drago-ex/parameters/actions/workflows/tests.yml)\r\n[![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)\r\n[![CodeFactor](https://www.codefactor.io/repository/github/drago-ex/parameters/badge)](https://www.codefactor.io/repository/github/drago-ex/parameters)\r\n[![Coverage Status](https://coveralls.io/repos/github/drago-ex/parameters/badge.svg?branch=master)](https://coveralls.io/github/drago-ex/parameters?branch=master)\r\n\r\n## Requirements\r\n- PHP \u003e= 8.3\r\n- Nette Framework\r\n- Composer\r\n\r\n## Installation\r\n```\r\ncomposer require drago-ex/parameters\r\n```\r\n\r\n## Extension registration\r\nTo enable the Parameters extension in your Nette project, add the following configuration to your neon file. This registers\r\nthe `ParametersExtension` and injects paths to the application, public, and temporary directories.\r\n```neon\r\nextensions:\r\n\t- Drago\\Parameters\\DI\\ParametersExtension(appDir: %appDir%, wwwDir: %wwwDir%, tempDir: %tempDir%)\r\n```\r\nThis will automatically inject the directory paths as services into your project.\r\n\r\n## Accessing Directories in Your Application\r\nOnce registered, you can access the directory paths throughout your application using the following properties:\r\n\r\n## Application Directory\r\nTo get the path to your application's directory (usually the root directory of your app), use:\r\n```php\r\n$this-\u003eappDir;\r\n```\r\n\r\n## Public Directory\r\nTo get the path to your public directory (e.g., the `www` or `public` directory):\r\n```php\r\n$this-\u003ewwwDir;\r\n```\r\n\r\n## Temporary Directory\r\nTo get the path to the temporary directory (where cache or logs might be stored):\r\n```php\r\n$this-\u003etempDir;\r\n```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrago-ex%2Fparameters","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrago-ex%2Fparameters","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrago-ex%2Fparameters/lists"}