Download the PHP package jamesgober/config without Composer

On this page you can find all versions of the php package jamesgober/config. 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


CONFIG MANAGER
BY JAMES GOBER

GitHub Stars   GitHub Issues   GitHub Release   GitHub License   PHP Version   Packagist Downloads

 

A Flexible PHP Configuration Manager

Config is a lightweight yet powerful PHP library designed to handle your application's configuration needs with ease and efficiency. Supporting multiple formats like JSON, XML, YAML, INI, and PHP arrays out of the box, it provides the flexibility to add custom parsers tailored to your specific requirements. With robust error handling, performance-focused design, and a modular architecture, JG\Config simplifies configuration management for modern PHP projects.

 

Key Features

 

Why Choose This Library?

JG\Config is built for developers who demand efficiency, reliability, and flexibility in their projects:

Whether you're building a small application or managing a large-scale project, JG\Config provides a robust solution to streamline your configuration management.

 


 

Installation

Install via composer:

 

 

Quick Start

Load Configurations

Effortlessly load multiple configuration files in various formats:

 

Manage Configurations

Easily delete individual values or entire groups:

 

Extend with Custom Parsers

Add support for new file formats via custom parsers:


 

Supported Formats

Format Example Extension
CONF config.conf .conf
INI config.ini .ini
JSON config.json .json
PHP Array config.php .php
XML config.xml .xml
YAML config.yaml .yaml, .yml

 

For more examples, see our Advanced Usage guide.

 


Error Handling

Custom Exceptions

JG\Config uses custom exceptions for intuitive error handling:

Exception Description
ConfigException General errors related to configuration.
ConfigParseException Errors when parsing configuration files.
InvalidParserException When unsupported or invalid parsers are used.

 

Example Usage:


 

Advanced Features

Explore advanced capabilities like caching, custom parsers, and dynamic flattening in our Advanced Guide.

 


Directory Structure


 

Reporting Security Issues

We take security seriously. If you find a vulnerability, please consult our SECURITY POLICY and follow the instructions for reporting.

Do not use public issue trackers or forums to disclose sensitive information.

 


Reporting Bugs and Feature Requests

For non-security issues, such as bugs or feature requests, please use our Issue Tracker. Providing detailed information will help us resolve issues efficiently.

 


Design Philosophy

Learn about the principles that guide the development of JG\Config in our Design Philosophy.

 


Contributing

Contributions are welcome! Check out the Code of Conduct for more information.

 


License

This library is open-source software licensed under the MIT license.

 

 


TOP

COPYRIGHT © 2024 JAMES GOBER & JAMESGOBER.COM.

 


All versions of config with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
ext-json Version *
ext-xml Version *
symfony/yaml Version ^7.1
psr/http-message Version ^2.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 jamesgober/config contains the following files

Loading the files please wait ....