PHP

543 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 1 year ago
MODERATORS
51
52
2
submitted 1 year ago by mac to c/php
53
8
submitted 1 year ago by mac to c/php
54
55
 
 

For me personally this feels very wrong. What do you think about that?

56
57
10
submitted 1 year ago by [email protected] to c/php
58
59
60
 
 

Link to internals discussion: https://externals.io/message/120972

61
 
 

A good article on implementing an event loop in PHP using the built-in fibers.

62
 
 

The article title is a little clickbaity, but basically, Doctrine and Symfony documentation don't mention that you can use constructor almost anywhere in the documentation.

63
 
 

As title state, seems clojure gain traction. I seen many US and EU Corporate project now days require this.

Is there anyway in our way in PHP to implement PHP to JS?

Seems will be interesting project.

64
 
 

A while ago I made this Symfony bundle that automagically memoizes your service methods using a PSR-6 cache.

Usage is very simple in 3 steps:

  1. have the service you want to memoize implement any interface
  2. mark the service with the #[Memoizable] attribute
  3. mark methods (or whole service) with the #[Memoize] attribute

Done!

65
66
67
 
 

Symfony 6.4 and Symfony 7.0 will be released at the same time at the end of November 2023. Both will have the exact same set of features, but also some important differences.

68
 
 

I'm wondering what people's thoughts on this project are?

I've had my eye on it for a while and it seems like it'll be to PHP what Typescript is to JS. Which is exiting if we can't get native support for some of these features.

69
 
 

To lighten up some discussion here, I would like to ask what features or changes you would love to see in future PHP versions? We know that in recent versions a lot of nice adjustments were added, but I bet most of us dreams for more.

I personally would love to see types on inline variables, at first even not strict. However, I don’t know if it’s remotely possible with how currently the language is implemented.

70
 
 

This site is pretty useful, and seems curated by many expert, especially PHP veteran from freenode and libera... Just want to share, hope it's useful to anyone that never know this site.

71
18
submitted 1 year ago by [email protected] to c/php
 
 

Why don't you come over and join in the development?

72
21
submitted 1 year ago by mbd to c/php
 
 

Hey! 👋

Whether you're an experienced PHP developer, a beginner just starting your journey, or an enthusiast interested in understanding more about the world of PHP, this is the place for you. We are a community dedicated to sharing knowledge, discussing new trends, and solving problems related to PHP.

As members of this community, we expect everyone to respect each other and foster a positive environment. Please make sure your posts are relevant to PHP, and remember to be kind and considerate in your discussions. Let's learn from each other and help each other grow.

Whether you're here to ask questions or to share your knowledge, we're excited to have you here. Let's make the most of this community together!

Welcome to /c/php! 🐘