close
Skip to main content

PHP Collective

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

Pinned content

View all 3 collections

PHP admins have deemed these posts noteworthy.

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
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

Can you answer these questions?

View all unanswered questions

These questions still don't have an answer

Best practices
0 votes
0 replies
52 views

Best approach for handling large file uploads and ZIP generation in Laravel?

I’m building a Laravel 12 folder organizer where users may upload large folders (many files / large sizes), and I categorize files by extension and generate a ZIP for download. Current approach: ...
1 vote
0 answers
61 views

Partial.ly API adding application_fee to Stripe PaymentIntent when using direct API Key (not OAuth)

Problem I am building a custom WooCommerce plugin that integrates with the Partial.ly API to create installment payment plans. I am following the official Partial.ly documentation for creating a ...
0 votes
0 answers
84 views

How to include a quantity per line in the export

I have a WordPress site with WooCommerce, and I use the Advanced Order Export for WooCommerce plugin to export the data. The form I use is from WooCommerce. When someone signs up for a club, they have ...
2 votes
0 answers
123 views

PHP login page protected by CSRF tokens and Google crawler

My app is built using Laravel 13, Filament PHP with Vue. I would like to add Google adsense on some web pages that are restricted for authorised users. The fact is that these pages have no public ...
1 vote
0 answers
77 views

How to capture the payment of an order using paypal checkout API on Laravel? Getting 400 Bad Request response

I'm integrating the PayPal API using its endpoint via Laravel Http requests. I've already done the Create Order function and it works: public function RequestAjaxPayment(Request $req) { ... ...

Learn something new
These are the most recent articles in PHP Collective
4 votes
697 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