PHP Code
The PHP Code subcategory focuses on the server-side programming language behind the modern web. Find ready-to-use snippets, detailed tutorials, and backend solutions to optimize web app performance and business logic.
Explore practical articles on MySQL database interaction, session management, form validation, REST API development, and PHP library integration. Tested and commented code snippets to speed up your daily workflow.
PHP internationalization: building robust multilingual ...
A practical guide to separating text from code, selecting locales, and handling catalogues, plurals, numbers, currencies and dates...
PHP 8.5 and Fibers: Optimize Asynchronous Requests With...
Learn how to use Fibers in PHP 8.5 to handle asynchronous and parallel I/O operations cleanly, without relying on a heavy framewor...
Secure REST APIs in PHP without a framework
A small educational PHP JSON API with PDO, opaque tokens and per-resource authorization.
Blockchain in PHP with transactions and a peer-to-peer ...
A conceptual outline of transactions, blocks and messages between nodes to extend the introductory PHP blockchain example.
A simple blockchain implementation in PHP
An introductory PHP example that creates blocks, calculates hashes and checks the integrity of a local chain.
Socket programming in PHP
Sockets let client and server processes communicate. This introduction builds a PHP server that receives a string and returns it r...