Limit search to available items
Book Cover
E-book
Author Punt, Thomas, author

Title Better PHP development
Published Collingwood, VIC Australia : SitePoint, [2017]
©2017

Copies

Description 1 online resource (1 volume) : illustrations
Contents 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
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
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
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!
Summary 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 competition is real, driving people to take shortcuts, skip best practices, and learn on-the-fly. With PHP 7+ came some improvements that make it harder to make mistakes, and 7.2 is making things even safer, even more structured. If you're just getting started with the language (or perhaps youve been using it a while and have learned some bad habits), you're in luck. Not only will it be ever harder to slip up and make mistakes, but content such as this - hand picked from the excellent SitePoint PHP channel - will help you get started the right way. This collection comprises: How PHP Executes - from Source Code to Render by Thomas Punt Getting to Know and Love Xdebug by Bruno Skvorc Localization Demystified: Php-Intl for Everyone by Younes Rafie Event Sourcing in a Pinch by Christopher Pitt Disco with Design Patterns: A Fresh Look at Dependency Injection by Reza Lavaryan A Comprehensive Guide to Using Cronjobs by Reza Lavaryan Event Loops in PHP by Christopher Pitt PDO - the Right Way to Access Databases in PHP by Parham Doustdar Vagrant: The Right Way to Start with PHP by Bruno Skvorc This book is suitable for beginner- to intermediate-level PHP developers
Notes Authors' names from chapter headings
Online resource; title from title page (Safari, viewed November 2, 2017)
Subject PHP (Computer program language)
COMPUTERS -- Programming Languages -- PHP.
PHP (Computer program language)
Form Electronic book
Author Skvorc, Bruno, author
Rafie, Younes, author
Pitt, Christopher, author
Lavaryan, Reza, author
ISBN 9781492023616
1492023612
9781492023609
1492023604
9781492023593
1492023590
Other Titles Better Personal Home Page development