Is golang faster than PHP?

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

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

    Calling GO functions from PHP via FFI.

  • And lastly is your site performance being hurt by some specific resource intense server side process (manipulating images or videos, calculating Pi..) that could be fixed by just replacing that specific PHP code with a Golang library that's used via PHP's FFI (see: https://github.com/eislambey/php-ffi-go-example)

  • golang-crud-rest-api

    Implementing CRUD in Golang REST API with Mux & GORM

  • Just as an example for anyone curious, here's a fully functional CRUD api written in Go. Personally, I've found that ORM bites you sooner than you think as you scale, but it can be worthwhile early on. Wouldn't necessarily organize a full CRUD app exactly the way they did, but it's not bad and wouldn't be hard to refactor into a CRUD app with many dozens of entities and endpoints: https://github.com/iammukeshm/golang-crud-rest-api. Roughly 450 LoC. That's it. The boilerplate needed for a symfony API of similar complexity is in the thousands of lines (yes I'm aware that you can generate a lot of that code, but people still have to sort through and read that code eventually)

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
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