---
title: "We Rewrote Our Startup from PHP to Gleam in 3 Weeks"
url: https://daily.dev/posts/we-rewrote-our-startup-from-php-to-gleam-in-3-weeks-l8nncffbz
source_url: https://www.radical-elements.com/minor-epiphanies/we-rewrote-our-startup-from-php-to-gleam-in-3-weeks
type: article
source: "Lobsters"
published: 2025-11-26T10:22:30.300Z
updated: 2025-11-26T10:22:56.799Z
tags: ["php", "functional-programming", "erlang", "gleam"]
reading_time: 7
upvotes: 13
comments: 2
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# We Rewrote Our Startup from PHP to Gleam in 3 Weeks

**[Lobsters](https://daily.dev/sources/lobsters)** · 7 min read · 13 upvotes · 2 comments

## Summary

A startup successfully migrated their knowledge base management system from PHP/Laravel to Gleam in three weeks, despite no prior Gleam experience. The rewrite was motivated by personal preference for functional, statically-typed languages and Gleam's compilation to Erlang/BEAM. Key challenges included learning the use keyword and result module, decoding/encoding data types, and building a custom query builder. The migration simplified infrastructure by replacing Laravel queues with BEAM VM processes, and the system has run reliably in production for one month with zero issues.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.radical-elements.com/minor-epiphanies/we-rewrote-our-startup-from-php-to-gleam-in-3-weeks>

## Community discussion

Top comments from developers on daily.dev.

**@gabsii** · 15 upvotes

> hot take: if you can rewrite within 3 weeks you probably don't have that much backend logic to begin with

## Similar posts on daily.dev

- [Optimising for maintainability](https://daily.dev/posts/optimising-for-maintainability-lmc7wdp0i) · Hacker News · 1 upvotes · 0 comments

---

Tags: [#php](https://daily.dev/tags/php), [#functional-programming](https://daily.dev/tags/functional-programming), [#erlang](https://daily.dev/tags/erlang), [#gleam](https://daily.dev/tags/gleam)

[View this post on daily.dev](https://daily.dev/posts/we-rewrote-our-startup-from-php-to-gleam-in-3-weeks-l8nncffbz)
