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.

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 configas

# Typed Config Resolver for Laravel Don't settle for **mixed** signatures from `config()` when you can enforce types. [![Total Downloads](https://img.shields.io/packagist/dt/smpita/configas.svg?style=flat-square)](https://packagist.org/packages/smpita/configas) [![Latest Version on Packagist](https://img.shields.io/packagist/v/smpita/configas.svg?style=flat-square)](https://packagist.org/packages/smpita/configas) [![License](https://img.shields.io/packagist/l/smpita/configas.svg?style=flat-square)](https://packagist.org/packages/smpita/configas) [![GitHub Tests Action Status](https://img.shields.io/github/actions/workflow/status/smpita/configas/run-tests.yml?branch=main&label=tests&style=flat-square)](https://github.com/smpita/configas/actions?query=workflow%3Arun-tests+branch%3Amain) [![Coverage Status](https://coveralls.io/repos/github/smpita/configas/badge.svg)](https://coveralls.io/github/smpita/configas) [![GitHub Code Style Action Status](https://img.shields.io/github/actions/workflow/status/smpita/configas/fix-php-code-style-issues.yml?branch=main&label=code%20style&style=flat-square)](https://github.com/smpita/configas/actions?query=workflow%3A"Fix+PHP+code+style+issues"+branch%3Amain) [![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fsmpita%2Fconfigas.svg?type=shield&issueType=security)](https://app.fossa.com/projects/git%2Bgithub.com%2Fsmpita%2Fconfigas?ref=badge_shield&issueType=security) [![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fsmpita%2Fconfigas.svg?type=shield&issueType=license)](https://app.fossa.com/projects/git%2Bgithub.com%2Fsmpita%2Fconfigas?ref=badge_shield&issueType=license)

Table of Contents


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.

Additionally:


Custom Resolvers

SIGNATURES#resolver-registration

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.

Credits

License

The MIT License (MIT). Please see License File for more information.


All versions of configas with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
illuminate/contracts Version >=10.0
smpita/typeas Version ^4.0.1
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 ...