Native defer & errdefer

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

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • PHP Defer

    Golang's defer statement for PHP

  • php-defer/php-defer: Golang's defer statement for PHP (github.com)

  • Safe

    All PHP functions, rewritten to throw exceptions instead of returning false

  • Not what you asked for, in modern codebases it's advised to use things like https://github.com/thecodingmachine/safe

  • 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
  • phpstan-safe-rule

    A PHPStan rule to be used with the thecodingmachine/safe package

  • This, together with https://github.com/thecodingmachine/phpstan-safe-rule , it's impossible to ever forget about it and implicitly solves such problems.

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