PHP

802 readers
1 users here now

Welcome to /c/php! This is a community for PHP developers and enthusiasts to share and discuss anything related to PHP. From the latest updates and tutorials, to your burning questions and amazing personal projects, we welcome all contributions.

Let's foster an environment of respect, learning, and mutual growth. Whether you're an experienced PHP developer, a beginner, or just interested in learning more about PHP, we're glad to have you here!

Let's code, learn, and grow together!

founded 2 years ago
MODERATORS
1
2
3
4
5
1
submitted 2 weeks ago* (last edited 2 weeks ago) by sanitation@lemmy.radio to c/php@programming.dev
 
 

I wrote about how I bootstrap my PHP apps without a fullstack framework like Laravel or Symfony. One file, a PSR-11 container, and four entry points covered: web, CLI, standalone scripts, and tests.

The key idea is that bootstrap.php returns a configured container. Every entry point requires it, grabs what it needs, and nothing leaks into the global namespace.

Going frameworkless is not about purism. It is about control. Use only what you need, nothing more.

6
7
 
 

Reli 0.12.0 is out.

I posted about this project here before, so maybe a few people remember it. Reli is a sampling profiler and VM inspector for PHP written in PHP. It started as a weird low-level experiment for inspecting running PHP processes from the outside, and this release is the biggest expansion so far.

One heads-up: this release contains a lot of AI-generated commits. Personally, using coding agents for this release was a very interesting experience, but I also understand that some people really dislike that direction.

Some of the bigger additions in 0.12.0:

  • memory analysis is no longer experimental
  • new dump → analyze → automatic report pipeline
  • compact binary trace format (.rbt) plus rbt:analyze / rbt:explore
  • inspector:watch for condition-based monitoring
  • inspector:peek-var and per-sample variable annotations
  • hybrid phpspy mode
  • much stronger ZTS / FrankenPHP support
  • PHP 8.4 / 8.5 and AArch64 support
  • substantial cold-attach performance work

If you want a quick feel for what the tool looks like now, the README has several GIF demos, which is probably the easiest place to start.

Repo: https://github.com/reliforp/reli-prof

Feedback is very welcome!

Original Reddit discussion: View on Reddit

8
9
10
11
12
13
 
 
14
15
16
17
18
19
20
 
 

Not yet released.

21
 
 

PHP, a server-side programming language used mainly for building dynamic websites and web applications, has just released version 8.5, a major update that adds new syntax, expanded attribute support, performance improvements, and multiple RFC-driven features.

One of the most significant additions is the new built-in URI extension. It provides a consistent API for parsing and modifying URLs, following both RFC 3986 and the WHATWG URL standards. Backed by uriparser and Lexbor, it replaces parse_url() in scenarios where accurate, standards-compliant handling is required

22
 
 

Sent 30 Oct. I am late.

23
 
 
24
25
view more: next ›