Skip to main content
  1. About
  2. For Teams

PHP Collective

A collective where developers working with PHP can learn and connect about the open source scripting language.
1.5m Questions
+17
18.3k Members
+68
Contact
Contact
Stay up to date
We'll highlight new content in your collectives with a blue activity indicator on navigation items and posts. Manage preferences

Pinned content

View all 3 collections

PHP admins have deemed these posts noteworthy.

Pinned
43 votes
10k views
Collection

Common Mistakes to Avoid in PHP

A list of real issues most beginners encounter when using PHP.
Sasha's user avatar
  • 101
Pinned
64 votes
7k 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

Can you answer these questions?

View all unanswered questions

These questions still don't have an answer

0 votes
0 answers
17 views

I click on the submit button and it gives me a white screen in Codio

I am doing this all in Codio. On my registration form I click on the submit button and it pops up a white screen but if I download the regForm.php it gives me a text document with this on the screen. ...
2 votes
0 answers
45 views

sharing to LinkedIn using curl and PHP - post photo AND URL to click through

I am building an app to make posts to a LinkedIn page, written in PHP, using the curl library. I have successfully: Authenticated (scopes: w_member_social, openid, profile, email Registered and ...
Best practices
2 votes
0 replies
90 views

How to utilize components for develop module in Lararvel

I have a Laravel Blade page where I implemented CRUD operations with DataTables. Currently, the form and Bootstrap modal are written directly inside the page (index.blade.php). Our team already has ...
1 vote
0 answers
67 views

No AuthenticationProvider present

A user, who changed some of their profile information, can also be impersonating another user during this time. When this is detected, I'd like to continue this impersonation. When I call setIdentity()...
0 votes
0 answers
91 views

How do you log from a Temporal activity with the PHP SDK?

Logging from a workflow is trivial, Workflow::getLogger() gives you a Psr\Log\LoggerInterface object. But how do I log from an activity? https://docs.temporal.io/develop/php/platform/observability ...

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

Quick guide to Laravel package development

Contents Introduction Types of packages Characteristics of a package The Laravel package! Components of a Laravel package Example of a Laravel package Creating your Laravel package 1- Package ...
Yousha Aleayoub's user avatar
3 votes
1k views
2 minute read
How-to guide

Properly removing API from Laravel project

Sometimes a development team may decide to remove all API functionality from a Laravel project for various reasons, such as: No longer needing any API, and shifting focus to web application with ...
Yousha Aleayoub's user avatar
13 votes
3k views
1 minute read
How-to guide

How to trim   (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
25 votes
57k 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
64 votes
7k 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
Members can contribute articles
Simply submit a proposal, get it approved, and publish it.
See how the process works
Morty Proxy This is a proxified and sanitized view of the page, visit original site.