GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - hackphp/config: HackPHP Config Access.

BranchesTags
Open more actions menu

Latest commit

 

History

4 Commits
4 Commits

Folders and files

NameName
Last commit message
Last commit date
src
src
 
 
tests
tests
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
composer.json
composer.json
 
 
phpunit.xml
phpunit.xml
 
 

Repository files navigation

HackPHP Config

HackPHP Config Access.

Usage

composer require hackphp/config
use Hackphp\Config\Config;
use Hackphp\Config\Parsers\ArrayParser;

$config = new Config([
    "app" => [
        "name" => "HackPHP"
    ],
    "server" => [
        "host" => "127.0.0.1",
        "port" => 8000
    ],
]);

$configRootDir = __DIR__ . "/config";
$config->addParser(new ArrayParser($configRootDir));
$config->load();

echo $config->get("server.host");
// output: 127.0.0.1

echo $config->get("file.key", "default value");
// output: default value

About

HackPHP Config Access.

Topics

confighackphpphpswoole

Resources

Readme
Activity
Custom properties

Stars

1 star

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.