PSR-16 and Exceptions

This page summarizes the projects mentioned and recommended in the original post on /r/PHP

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • simple-cache

  • However, the PSR-16 implementation at php-fig.org and its Github repository are littered with @throws \Psr\SimpleCache\InvalidArgumentException which is just an interface and not even throwable.

  • container

  • Correct. If it is an exception, it should be a subtype of an exception (Throwable), otherwise it cannot be used in the `throws` annotation. I guess this discussion was made for historical reasons, concrete all PHP 5.x versions. Since PHP 7, we are able to extend interfaces from interfaces, e.g. Throwable. The same "issue" also applies to the PSR-11 exception interface. Read more: Extending Throwable for exception interfaces

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • cache

    Vectorface cache library (by Vectorface)

  • I just stopped implementing PSR-16 directly, and instead just providing a SimpleCacheAdapter class which wraps my own implementations which use my own "fixed" Cache interface. https://github.com/Vectorface/cache

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts