Modern PHP Cheat Sheet

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • eta (η)

    Embedded JS template engine for Node, Deno, and the browser. Lighweight, fast, and pluggable. Written in TypeScript (by eta-dev)

  • Eta is a very similar template engine to EJS. It's supposed to be faster, lighter, with async templates.

    https://eta.js.org/

    https://github.com/eta-dev/eta/

  • spatie.be

    The source code of spatie.be

  • The guys behind it work at Spatie[1] which you have probably heard of some of their packages, and Freek has a blog[2] that has a lot of PHP stuff on - lots Laravel, and lots just general new language stuff (covering PHP8 features etc)

    [1] https://spatie.be

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

    SurveyJS logo
  • nodejs-server-pages

    FastCGI server for using Node.JS in server-side templated pages, in the style of PHP.

  • Not my cup of tea, but if you really want PHP-like with JS, EJS looks really close to "I wish server-side javascript worked like PHP":

    https://ejs.co/

    Just needs a FastCGI wrapper.

    Another "Node, but PHP like" project that compares itself to EJS and other similar things: https://github.com/Yahweasel/nodejs-server-pages

  • Psalm

    A static analysis tool for finding errors in PHP applications

  • PHP doesn't do such structural typing, but Psalm[1] can do it statically. It calls them object-like arrays.[2]

    [1]: https://psalm.dev/

  • credo

    A static code analysis tool for the Elixir language with a focus on code consistency and teaching.

  • [1] https://github.com/rrrene/credo/blob/master/lib/credo/check/...

  • API Platform

    Create REST and GraphQL APIs, scaffold Jamstack webapps, stream changes in real-time.

  • If you really want things to happen fast, you can also take a look at api platform:

    https://api-platform.com/

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