Skip to main content
The 2024 Developer Survey results are live! See the results

PHP Collective

A collective where developers working with PHP can learn and connect about the open source scripting language.
1.5m Questions
+272
11.1k Members
+90
Contact

Pinned content

View all 3 collections

PHP admins have deemed these posts noteworthy.

Pinned
44 votes
3k views
2 minute read
How-to guide

Start learning PHP — Useful resources for beginners and advanced

Start learning PHP — Useful resources for beginners and advanced! If you're wondering where to start from learning the PHP language or needing some more knowledge to deep dive into the language, you ...
RB Projects's user avatar
Pinned
24 votes
5k views
Collection

Common Mistakes to Avoid in PHP

A list of real issues most beginners encounter when using PHP.
Sasha's user avatar
  • 101

Can you answer these questions?

View all unanswered questions

These questions still don't have an answer

0 votes
0 answers
8 views

Is there a PHP MSK Client library that supports using IAM roles

trying to use php client to connect to a MSK kafka cluster setup to use IAM roles All code I can find shows the need for a username and password in the SASL config, is there a way to use IAM role ...
0 votes
0 answers
12 views

Laravel Filament Form export to PDF

I want to send an email to the customer after filling up the form, I tried to use Barryvdh\DomPDF for that, I had two functions loadHtml and loadView, I tried this way : controller : <?php ...
-1 votes
0 answers
15 views

Connect PhpStorm debugger to Xdebug with Warden

I'm getting an old Magento 1 project up and running, and am hitting issues getting the debugger working. Everything is run on Docker, using Warden to manage the different containers. I've followed the ...
0 votes
0 answers
21 views

Is there a way to tell WordPress to use a page theme as the styling of the login page?

I am needing to make a custom login page for my website but need things that are just unavailable (or not available for free) from any of the login page customization plugins. I have created a page ...
0 votes
0 answers
10 views

Uploading from OneDrive/Sharepoint in Laravel App

I'm looking for a solution to allow users to authenticate then upload files from their Sharepoint/OneDrive to S3 within a Laravel application. Has anyone been able to accomplish this before? I've only ...

Looking for an extra challenge?

View all bountied questions

These questions have a bounty on them

1 vote
1 answer
59 views
+50

Sentry Queue integration with Symfony messenger

I've been trying to set up Symfony Messenger with Sentry Queues for a while but without any luck. I cannot find any resources online related to this specific topic. I'm trying to use the example ...

Learn something new
These are the most recent articles in PHP Collective
4 votes
273 views
1 minute read
How-to guide

How to trim &nbsp; (or non-breaking space) in PHP?

The main problem is the way trim() function works. One cannot reliably trim a substring using this function, because it takes its second argument as a collection of characters, each of which would be ...
Your Common Sense's user avatar
21 votes
56k views
3 minute read
Knowledge article

Evolution of Type Declarations in PHP

Introduction: PHP, being a dynamically typed language, traditionally allowed flexibility in variable types, providing both advantages and challenges in code maintenance and robustness. However, with ...
alkhatibdev's user avatar
44 votes
3k views
2 minute read
How-to guide

Start learning PHP — Useful resources for beginners and advanced

Start learning PHP — Useful resources for beginners and advanced! If you're wondering where to start from learning the PHP language or needing some more knowledge to deep dive into the language, you ...
RB Projects's user avatar