🎓 Collection of useful PHP frequently asked questions, articles and best practices

Overview

PHP.earth documentation

Build Status

These files are available online at PHP.earth.

Contributing and license

We are always looking forward to see your contribution to these knowledge resources as well.

If you feel that there is something missing and should be pointed out, or you've just found a typo, don't hesitate to open an issue or send a pull request. The contributing document contains more information about contributing.

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license. Code snippets in examples are published under the CC0 1.0 Universal (CC0 1.0).

Big thanks to all the authors and contributors.

Building PDF and FAQ HTML

The generate script generates PDF and HTML from the Markdown sources:

.github/generate
Comments
  • [WIP] C programming for PHP developers

    [WIP] C programming for PHP developers

    New fresh chapter out of the oven - C programming for PHP developers

    This is a work in progress and will include an introduction course of C language adjusted for PHP developers. Beginners should be able to follow it also.

    Why the C language?

    • in the group there are people starting with their programming journey and C is actually a very good way to start programming to better understand of something lower level
    • chapters will also include a brief introduction into writing PHP extensions

    More coming up soon...

    new content 
    opened by petk 8
  • New FAQ/article - mysqli tutorial

    New FAQ/article - mysqli tutorial

    Beginners many times still use the prehistoric ext/mysql for accessing the MySQL database with PHP. Also some first results on Google still point to old tutorials. Probably we'll need another introduction to mysqli for such cases with some of the following parts:

    • some basic tutorial with copy/paste and working solutions how to use the mysqli
    • connecting to a database
    • retrieving results from database table
    • retrieving one result from database
    • counting
    • SQL injection explained for beginners

    Noted here for the not so distant future to create a new FAQ/article content.

    wontfix new content 
    opened by petk 6
  • update configuration

    update configuration

    • added note about reserved keywords in ini format
    • updated Config::class
      • static methods should not be used in object context
      • added default value for Config::get method
      • method Config::set throws RuntimeException if the environment key is set to non-development environment
    enhancement 
    opened by azjezz 5
  • List of useful PHP libraries

    List of useful PHP libraries

    Many users look for useful open source PHP libraries, packages and scripts. It would be more expressive and useful to have also a simple list of these.

    The chapter has been started here: https://github.com/wwphp-fb/php-resources/blob/master/packages/packages.md

    TODO:

    • [x] Add some PDO and mysqli wrappers
    • [x] Add more libraries and packages from GitHub
    new content hacktoberfest 
    opened by petk 5
  • Add wildcard subdomains FAQ

    Add wildcard subdomains FAQ

    Add an FAQ entry about how to use wildcard subdomains, what are they etc. here: https://github.com/wwphp-fb/php-resources/blob/master/faq/general/wildcard-subdomains.md

    opened by petk 5
  • Copyright violation

    Copyright violation

    Hi!

    My name is Alexander Shvets, I'm the owner of sourcemaking.com. Your design pattern content is taken from our website without permission.

    Please, take it down.

    opened by neochief 4
  • [WIP] [OOP] OOP chapter improvements

    [WIP] [OOP] OOP chapter improvements

    This patch is a work in progress and includes several improvements for the OOP chapter:

    • New content: Autoloading
    • New content: SOLID
    • Design patterns improvements
    enhancement invalid new content hacktoberfest 
    opened by petk 4
  • Dompdf library

    Dompdf library

    Dompdf library also works ok for creating PDF documents with PHP and should be added on this list: https://github.com/wwphp-fb/php-resources/blob/master/packages/pdf.md

    hacktoberfest 
    opened by petk 4
  • New article(/s) idea: Encryption; Hashing.

    New article(/s) idea: Encryption; Hashing.

    New article(/s) idea: Encryption; Hashing (possibly as two separate articles, or as a single comparative article for both).

    • What is encryption? (Basic outline of what encryption is; A simplified introduction to encryption).
    • What is hashing? (Basic outline of what hashing is; A simplified introduction to hashing).
    • What is the difference between encryption and hashing?

    See:

    • https://www.facebook.com/groups/2204685680/permalink/10154840776145681/
    • https://www.facebook.com/groups/2204685680/permalink/10154798264310681/
    new content 
    opened by Maikuolan 4
  • New FAQ: CodeIgniter

    New FAQ: CodeIgniter

    Some more useful resources and info are needed for CodeIgniter FAQ: https://github.com/wwphp-fb/php-resources/blob/master/faq/frameworks/codeigniter.md

    needs review easy pick faq 
    opened by petk 4
  • Add article about Object pool

    Add article about Object pool

    Description of Object pool pattern and how to use it PHP https://github.com/wwphp-fb/php-resources/blob/master/articles/oop/design-patterns/object-pool.md

    needs review 
    opened by petk 4
  • Add missing content to empty pages

    Add missing content to empty pages

    Some pages are currently added there to have an overview of what's coming up in the group docs. TODO: add missing content for pages like these:

    • https://docs.php.earth/c/php-extensions/ ...
    opened by petk 0
  • Collection of missing FAQs 2018

    Collection of missing FAQs 2018

    There are many things answered so far on a decent level, yet some are still missing and might be handy to have:

    • [ ] List of trustworthy and quality company/project name generators (optionally with domain checking)
    • [ ] Searching with PHP (databases and other data)
    • [ ] OOP vs. procedural vs... (a PHP related comparison of programming paradigms)
    • [ ] Where to find PHP jobs
    • [ ] "Google it" complaint type of post/question There were many posts where group members repeat and waste their time explaining benefits of allowing beginner questions etc.
    • [ ] Including files (*.inc files and *.php)
    • [ ] When sending emails, how to avoid getting emails in the spam folder?
    • [ ] How to work with emails during development
    • [ ] Random strings, numbers
    • [ ] ...TBD...

    (this list is in preparation)

    faq 
    opened by petk 0
  • Frameworks chapters improvements

    Frameworks chapters improvements

    TODO:

    • [ ] Reorganize and sort list of all frameworks by sections
    • [ ] Improve and update advice which framework should beginners, intermediates, professionals, ninjas, grandmas learn
    opened by petk 1
Owner
PHP.earth
Global PHP group
PHP.earth
An utility component for XML usage and best practices in PHP

An utility component for XML usage and best practices in PHP

Laminas Project 13 Nov 26, 2022
Learn to apply best practices as a PHP backend developer

PHP eCommerce Project Here are the things that this repo will cover: Object oriented programming principles and best practices Object oriented session

Muhammad Salah 0 Aug 2, 2022
A Magento 1.x module which facilitates automatic purging of static assets from HTTP caches such as browser cache, CDN, Varnish, etc using best practices outlined within the HTML5 boilerplate community.

Magento Cachebuster Cachebuster is a Magento module which facilitates automatic purging of static assets from HTTP caches such as browser cache, CDN,

Gordon Knoppe 129 Apr 1, 2022
Laravel boilerplate with the best development practices.

Laravel Boilerplate Introduction ?? Welcome to Laravel Init - a boilerplate for installing laravel application. It covers: One-liner shell script to s

ColoredCow 7 Dec 29, 2021
Cheatsheet for some Php knowledge you will frequently encounter in modern projects.

Cheatsheet for some Php knowledge you will frequently encounter in modern projects.

Arnaud Becher 1.1k Jan 2, 2023
Collection of useful PHP functions, mini-classes, and snippets for every day.

JBZoo / Utils Collection of PHP functions, mini classes and snippets for everyday developer's routine life. Install composer require jbzoo/utils Usage

JBZoo Toolbox 786 Dec 30, 2022
A collection of useful codes and utilities for WordPress plugin development..

WordPress Utils A collection of useful codes and utilities for WordPress plugin development. These simplifies common tasks and promote code reusabilit

weDevs 5 Jun 9, 2023
QuestionApp - a platform where users can ask questions and discuss about the subject they are curious about

QuestionApp About The Project It can be a trend according to the number of likes and comments that members can ask questions. ![Alt Text] Ask your any

Tolga Bayrak 4 Oct 7, 2022
Some exercises to practice whiteboard interview questions in PHP.

PHP Interview Exercises · A number of exercises to practice whiteboard interview questions in PHP. Inside exercises directory, you can find folders co

Anton Ždanov 421 Jan 9, 2023
This is an extension to my datacode interview questions.

This is an extension to my datacode interview questions. This is a fully working response form with email functionality as well as database manipulation.The form can be translated from French, English and Pirate based on the browser language.

null 1 Feb 13, 2022
Mega list of 1 on 1 meeting questions compiled from a variety to sources

Mega list of 1 on 1 meeting questions compiled from a variety to sources

Vidal Graupera 9.1k Dec 29, 2022
A curated list of awesome Laravel bookmarks, packages, tools, articles, tutorials and related resources.

ATTENTION: This list is obsolete and discontinued. Please find a much more comprehensive, much more well-maintained awesome-laravel list at chiraggude

Unnawut Leepaisalsuwanna 96 Aug 5, 2022
Create a web service for discussion and comments of articles.

Test technique But Créer un service web de discussion et de commentaires d’articles. Fonctionnalités Les fonctionnalités attendus sont les suivantes :

Mathieu Ledru 1 Feb 8, 2022
Extracts information about web pages, like youtube videos, twitter statuses or blog articles.

Essence is a simple PHP library to extract media information from websites, like youtube videos, twitter statuses or blog articles. If you were alread

Essence 765 Dec 30, 2022
Enable Facebook Instant Articles on your WordPress site.

Instant Articles for WP Enable Instant Articles for Facebook on your WordPress site. Plugin activity Description This plugin adds support for Instant

Automattic 633 Nov 21, 2022
🖍 Write beautiful blog articles using Markdown inside your Laravel app.

Blogged Write beautiful blog articles using Markdown inside your Laravel app. Blogged ?? Blogged is a carefully designed Laravel package provides an e

Saleem Hadad 131 Dec 16, 2022
The game is implemented as an example of scalable and high load architecture combined with modern software development practices

Crossword game The game is implemented as an example of scalable and high load architecture combined with modern software development practices Exampl

Roman 56 Oct 27, 2022
This Kirby V3 Plugin brings snippets and blueprints together in one place. It includes useful tools that completely changing the way you work with Kirby: Fast and well organized.

Kirby Components Overview Do you love to make awesome projects with Kirby CMS? Do you also find it difficult to switch between snippets and blueprints

Roman Gsponer 6 May 31, 2023