Press J to jump to the feed. Press question mark to learn the rest of the keyboard shortcuts
2
Stickied postModerator of r/PHP

Hello there!

This is a safe, non-judging environment for all your questions no matter how silly you think they are. Anyone can answer questions.

Previous discussions

Thanks!

2
24 comments
5

So far I'm looking at Zebra_Session. Any other alternatives?

5
3 comments
254
Comments are locked

Hey Reddit: Want to write better? Eliminate grammatical mistakes, wipe out wordiness, and let your ideas shine. See for yourself why over 15 million users are hooked on Grammarly's free writing app.

254
comment
13

Hello Redditors, I wrote a composer plugin, that can generate a vendor/preload.php file with settings defined in the composer.json file. This plugin adds a new command composer preload, that takes settings from the composer.json file that lists paths, excludes, and other configurations, and creates a vendor/preload.php file that calls opcache functions to warm up the cache.

You can then run this file to warm up, or when you have PHP 7.4, configure this file in php.ini to load automatically when PHP starts up.

Plugin: https://github.com/Ayesh/Composer-Preload

Edit: Oops, forgot to include the link to the plugin because of the excitement :)

I'd appreciate any feedback! There is a big roadmap, and I'm happy to work on and collaborate!

Thanks!

13
21 comments
16

I found a good reading material for PHP design patterns in phptherightway: (https://designpatternsphp.readthedocs.io/en/latest/) , but it's too big and confusing. What design patterns should I learn and practice first to get started? Which one of them are used frequently?

16
30 comments
0

Hey guys and girls of php

I am a new php developer. I have a quick qs. I ran a select query and it does not show me column headers. Any advice how I can show them. Thanks all.

0
5 comments
Community Details

83.0k

Subscribers

449

Online

Ask questions about frameworks, try your hand at php golf and strike gold or simply show off your latest work.

Create Post
r/PHP Rules
1.
No direct, personal attacks
2.
Remain civil
3.
Excessive self-promotion
4.
No help posts (not including discussion)
5.
No memes
6.
Google your title