RFC: Sealed classes

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

Stream - Scalable APIs for Chat, Feeds, Moderation, & Video.
Stream helps developers build engaging apps that scale to millions with performant and flexible Chat, Feeds, Moderation, and Video APIs and SDKs powered by a global edge network and enterprise-grade infrastructure.
getstream.io
featured
InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com
featured
  1. Package

    Kotlin: https://kotlinlang.org/docs/sealed-classes.html#location-of-direct-subclasses ( instead of using permits, all class within the same package are permitted, this won't work in PHP since we don't have pacakges, but if in the future we get packages, we can make it so that classes with no permit clauses are permitted to the same package - see https://github.com/Danack/Package/blob/master/rfc_words.md )

  2. Stream

    Stream - Scalable APIs for Chat, Feeds, Moderation, & Video. Stream helps developers build engaging apps that scale to millions with performant and flexible Chat, Feeds, Moderation, and Video APIs and SDKs powered by a global edge network and enterprise-grade infrastructure.

    Stream logo
  3. Symfony

    The Symfony PHP framework

    One such example is FormTypeInterface in Symfony which has been changed few times. Because all the documentation said to use AbstractType, there has never been a problem for most.

  4. z-engine

    :zap: PHP Engine Direct API

    Operator overloading can technically be done in userspace via FFI with https://github.com/lisachenko/z-engine (I have an active PR adding headers for 7.4 and 8.1 as well as TS) - but it's super hacky and I would love to see it actually make it into PHP proper.

  5. user-documentation

    Documentation for those that use HHVM and write Hack code.

    I think there are thousands of other things to apply to PHP, rather than this, but if that's the way to go, well, the worse is nothing. Also just look at what https://docs.hhvm.com/ has and PHP doesn't, or go through LOLPHP.

  6. PHP OAuth 2.0 Server

    A spec compliant, secure by default PHP OAuth 2.0 Server

    I completely agree with this!! Sometimes there's too much hubris in OSS; classes made final, methods made private- because the author has made their mind up about how the library should work and be used. But sometimes it's not possible to imagine every use case. If software is extensible and someone breaks their app by extending your library and doing something wrong, that's their problem. Take a look at this for example: https://github.com/thephpleague/oauth2-server/issues/885 here the authors don't want to make it more extensible because some people might encode too many claims into their tokens and run into problems with header size. Ffs get off your high horse and let people use their own judgement !! /rant

  7. http-message

    The purpose of this PSR is to provide a set of common interfaces for HTTP messages as described in RFC 7230 and RFC 7231

    For instance look at https://github.com/php-fig/http-message/blob/master/src/RequestInterface.php . Implementers of that API need to read the detailed docblocks, not just the method names and signatures.

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

  • Laravel Seeders & Factories —How to Generate Fake Data for Development

    1 project | dev.to | 14 Jul 2025
  • Build a Command Line TODO App with Goravel Console

    2 projects | dev.to | 30 May 2025
  • Unfiltered - Anonymous Inbox for the Internet

    4 projects | dev.to | 30 May 2025
  • Composition vs. Inheritance in PHP Frameworks

    4 projects | dev.to | 22 May 2025
  • How to Build a Blog with Laravel (& Send Slack Notifications)

    5 projects | dev.to | 21 Apr 2025

Did you know that PHP is
the 14th most popular programming language
based on number of references?