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
+105
+1
14.4k Members
+62
Contact

PHP admins have deemed these posts noteworthy.

Pinned
32votes
8kviews
Collection

Common Mistakes to Avoid in PHP

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

0votes
0answers
14views

Dompdf - Table display is messy when using rowspan and page break

i have a problem with dompdf when using rowspan and table overlaps down, this issue is usually solved by adding css page-break-inside: avoid; but without rowspan, when i add rowspan the table contents ...
0votes
0answers
8views

'./dist/bootstrap-vue-next.mjs?' does not provide an export named 'BootstrapVueNext'

In my laravel application after i installing npm install bootstrap bootstrap-vue-next and updating the vite.config.js : import { BootstrapVueNext } from 'bootstrap-vue-next'; import 'bootstrap/dist/...
0votes
0answers
44views

How to submit contact form form with file attachment and get the result in telegram bot

How can my submisson submit two diffrent file upload to telegram bot along with other result, please help me look into this, am novice. i was trying to build contact form with two attachment and ...
1vote
0answers
56views

Docker does not download the specified image

Docker-Compose is not downloading the specific version of PHP that I want. I want the version "php:8.4.5-fpm" and it only downloads the "latest" version. I tried several things, ...
0votes
0answers
21views

Drupal config sync but database drifting, how to automate 'database migration'?

I am using drupal11. Specifically, I am using the paragrpahs module where on fresh install of the module it will create the module related entity tables in the database. Then I export my config ...

Learn something new
These are the most recent articles in PHP Collective
0votes
46views
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
2votes
560views
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
9votes
2kviews
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
25votes
57kviews
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
58votes
5kviews
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
close