Download the PHP
package smpita/configas without Composer
On this page you can find all versions of the php package
smpita/configas. It is possible to download/install
these versions without Composer. Possible dependencies are resolved
automatically.
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.
# Typed Config Resolver for Laravel
Don't settle for **mixed** signatures from `config()` when you can enforce types.
[](https://packagist.org/packages/smpita/configas)
[](https://packagist.org/packages/smpita/configas)
[](https://packagist.org/packages/smpita/configas)
[](https://github.com/smpita/configas/actions?query=workflow%3Arun-tests+branch%3Amain)
[](https://coveralls.io/github/smpita/configas)
[](https://github.com/smpita/configas/actions?query=workflow%3A"Fix+PHP+code+style+issues"+branch%3Amain)
[](https://app.fossa.com/projects/git%2Bgithub.com%2Fsmpita%2Fconfigas?ref=badge_shield&issueType=security)
[](https://app.fossa.com/projects/git%2Bgithub.com%2Fsmpita%2Fconfigas?ref=badge_shield&issueType=license)
Table of Contents
Quick Start
Installation
Resolving Types
Cache
Cache Invalidation
Fresh Values
Helpers
Deprecations
Testing
Changelog
Contributing
Security Vulnerabilities
Credits
License
This package wraps Smpita/TypeAs, a generalized PHP library useful on any PHP project employing static analysis or tight type enforcement.
Quick Start
Installation
Install the package via composer:
See SIGNATURES for the full list of methods and signatures.
Resolving types
SIGNATURES#resolving
To suppress throwing exceptions, provide a default.
Cache
SIGNATURES#cache
To keep things performant, types are validated once and results are cached in static arrays for the lifetime of the request.
Cache Invalidation
SIGNATURES#cache-invalidation
You can flush all caches or invalidate any given key.
Fresh values
To bypass the cache, you may use the fresh methods that are available for each type.
This method bypasses the cache entirely. Returns from these methods will not be cached.
To update a cache, standard resolver.
Helpers
SIGNATURES#helpers
There are helper methods located in the Smpita\ConfigAs namespace.
ConfigAs methods will pass custom resolves to the underlying Smpita\TypeAs library to enable you to use your own custom resolvers. For creation, global registration, and full instructions, see the library docs.
Single use
Deprecations
SIGNATURES#deprecations
Testing
Changelog
Please see RELEASES for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
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 smpita/configas contains the following files
Loading the files please wait ...
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.