Better PHP development

PHP powers the vast majority of the web today. It is by far the most ubiquitous and accessible mature web language, and welcomes thousands of new developers every day. It is this ease of access that can, admittedly, sometimes give it a bad name - good resources are few and far in between, and the co...

Full description

Bibliographic Details
Main Authors: Punt, Thomas, Skvorc, Bruno (Author), Rafie, Younes (Author), Pitt, Christopher (Author)
Format: eBook
Language:English
Published: Collingwood, VIC Australia SitePoint 2017
Subjects:
Online Access:
Collection: O'Reilly - Collection details see MPG.ReNa
Table of Contents:
  • Adding Helper FunctionsStoring Events; Naming Pattern; Projecting Events; Projecting Specifically; Summary; Disco with Design Patterns: A Fresh Look at Dependency Injection; by Reza Lavaryan; Installation; Getting Started; container_interop's Interfaces; How to Get a Service from the Container; Service Scope; Container Parameters; Disco in Action; The Kernel; Routing; The Front Controller; Disco Time; But How About the Configuration?; Creating a Container Builder; Application Class; Creating a Response Listener; Conclusion; A Comprehensive Guide to Using Cronjobs; by Reza Lavaryan
  • TerminologyGetting Started; run-parts; Crontab Files; spool Directory Location; Privileges; Anatomy of a Crontab Entry; Specifying Both Day of Month and Day of Week; Editing Other Users' Crontab; Privileges; Ownership; Standard and Non-Standard Values; Ranges; Lists; Steps; Names; Predefined Definitions; Multiple Commands in the Same Cron Job; Environment Variables; Use Quote Marks; Different Time Zones; How Cron Interprets Crontab Files; Cron Permissions; Allow and Deny; Redirecting Output; Email the Output; Cron and PHP; Task Overlaps; Using Flock; Using a Locking Mechanism in the Scripts
  • Better PHP Development; Notice of Rights; Notice of Liability; Trademark Notice; About SitePoint; Table of Contents; Preface; Conventions Used; Code Samples; Tips, Notes, and Warnings; Hey, You!; Ahem, Excuse Me ... ; Make Sure You Always ... ; Watch Out!; How PHP Executes-from Source Code to Render; by Thomas Punt; Introduction; Stage 1
  • Lexing; Stage 2
  • Parsing; Stage 3
  • Compilation; Stage 4
  • Interpretation; Conclusion; Getting to Know and Love Xdebug; by Bruno Škvorc; How do I use it?; With modern IDEs and Blackfire, is there even a need for Xdebug?; Let's Try It Out; Turning Xdebug Off
  • AnacronCollision Between Cron and Anacron; Quick Troubleshooting; Absolute Path to the commands; Make Sure Cron Daemon Is Running; Check /etc/cron.allow and /etc/cron.deny Files; Execute Permission; New Line Character; Wrapping Up; Event Loops in PHP; by Christopher Pitt; Where Things Go To Wait; Life Without An Event Loop; Icicle; ReactPHP; Conclusion; PDO
  • the Right Way to Access Databases in PHP; by Parham Doustdar; Why not mysql and mysqli?; PDO is object-oriented; Abstraction; It allows parameter binding; You can fetch data into objects; The mysql extension is no longer supported!
  • Location of ini FileFile Clickthroughs; Xdebug with Vagrant and PhpStorm; Using the Profiler; Forcing Xdebug's Render on Laravel; Conclusion; Localization Demystified: Php-Intl for Everyone; by Younes Rafie; Installation; Message Formatting; Simple Messages; Pluralization; Choices; Select; Complex Cases; Message Parsing; Event Sourcing in a Pinch; by Christopher Pitt; Common Language; A Safety Net; Storing State vs. Storing Behavior; Storing State; Storing Behavior; So Which Is It?; Making Events; Avoiding Jargon; Omitting These Classes; Storing Events; Using PDO; SQL Ahead