summaryrefslogtreecommitdiff
path: root/blog/fuckingphp.md
blob: 2e84bb4219ee4d07ca2e0278f734055ed2ff9ccf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
---
id: afHxz86ZPIM
title: own php what the fuck
description: i fucking hate this language
author: lain
visibility: public
created: 2026-03-29T00:52:21+00:00
---

# own php what the fuck

> ive been through a lot of tools... ive been a react, a nextjs, a lume.land...
>
> ive tried frameworks, tooling, abstractions - all the usual stuff

at some point, you stop asking:

> whats the best tool??

and start asking:

> why the fuck am i using any of this at all?

# soo....

so i built my own php runtime....

not to compete with php. not to replace it. just to run _my stuff_, the way
**i** want.

- no fucking composer (mostly useless for me)
- no vendor shit (lol own /lib/)
- no fighting with shitty the zend engine

just:

- parse
- evaluate
- serve

and that’s it.

dis project is not about “being correct”. its about being fucking enough.

---

nerdphp exists because i was tired of everything being heavier than necessary.
oh and yeah - its incomplete, limited, probably wrong in a lot of ways...

but it runs my site. "at least it works..."

and this was honestly easier than kerberos configuration.

[kroot.sh](https://kroot.sh) is currently powered by nerdphp

---

```toml
[server]
host = "0.0.0.0"
port = 8080

[php]
root = "./src"
# some kind of main.php
index = "index.php"

[static]
dir = "site"
```

TODO: more context

# :3