The Leanpub 60 Day 100% Happiness Guarantee
Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.
See full terms...
Bought separately
$116
Minimum price
$39.00
$59.00
About the Bundle
About the Books
A hands-on, code-first tutorial for developers, freelancers, and small-business owners who already know HTML, CSS, and basic JavaScript and want to build real WordPress software rather than assemble it from plugins.
The book starts with WordPress's architecture — the request lifecycle through `wp-settings.php`, the hook system, the database schema, options, transients, and the bootstrap chain — then sets up a containerised local environment with `wp-env`, Docker, Colima, VS Code, Xdebug, Composer, and WP-CLI. From there it builds themes and block themes (`theme.json`, the Site Editor, child themes), the Template Hierarchy, and the Query Loop with `WP_Query`, `get_posts()`, conditional tags, taxonomy and meta queries, and pagination.
The middle chapters cover the work clients actually pay for: custom post types, taxonomies, meta boxes and REST-registered meta, roles and capabilities, custom fields, the REST API with cookie-plus-nonce and Application Password auth, AJAX and the Interactivity API, and a security chapter built on sanitise early / escape late / always validate, with nonces, capability checks, file uploads, and PHPCS configuration.
The final third turns operational: gettext internationalisation, WCAG 2.2 AA accessibility, SEO and structured data, the four caching layers, database performance, PHPUnit, Playwright, PHP_CodeSniffer, GitHub Actions CI/CD, deployment, monitoring, white-screen-of-death recovery, and HPOS-aware WooCommerce extension code. Two complete walkthroughs take a brief to a launched lead-generation site and a live WooCommerce extension. Every chapter ends with a recap checklist and hands-on exercises.
A hands-on path from a fresh local Drupal install to production-grade custom development, written for developers, site builders, and junior-to-midlevel Drupal contributors who already know HTML, CSS, PHP, JavaScript, Git, and basic shell usage.
You'll set up a Composer-managed Drupal 10/11 project with DDEV or a container stack, then work through the platform as a set of cooperating abstractions rather than a list of admin screens. Content modeling chapters cover content types, bundles, fields, media, taxonomy, display, and validation. Access chapters cover roles, permissions, route and entity access, form tokens, CSRF, and safe file uploads. Editorial chapters cover Views, taxonomy as an interface, Content Moderation, workflow configuration, bulk edit, and editorial dashboards.
The custom-code half builds a small catalog module layer by layer: routing and controllers, Form API with validation and AJAX, entities and field access, typed configuration, services and dependency injection, service decoration, event subscribers, render arrays, Twig overrides, and front-end libraries. You'll then add JSON:API and REST exposure, write PHPUnit and Behat tests, and apply accessibility, security hardening, caching, performance measurement, and CI/CD with Drush-based deployment scripts.
Later chapters cover migrating legacy Drupal content with the Migrate API, launch readiness runbooks, backup and recovery, and three complete walkthroughs: a university events platform, a membership publishing platform with paywall and webhook, and a headless corporate knowledge hub.
A hands-on guide for experienced PHP developers, technical leads, and freelancers who need to ship real Adobe Commerce and Magento Open Source stores — not demo sites.
You will install a working store locally, configure multi-store catalog and pricing scopes, and model the customer, quote, checkout, and order lifecycle so duplicate-order and tax errors stop being surprises. You will build a maintainable backend extension (a loyalty-points module) with its own data model, domain service, cart-total collector, event-driven ledger writes, and admin and storefront presentation — all without editing core. You will consume the platform through GraphQL and REST: querying the catalog, running carts and checkout, issuing scoped REST tokens, consuming webhooks as untrusted input, and caching responses.
The integration chapters cover what clients actually ask for: a payment adapter with PCI DSS boundaries, test-mode cards, and webhook reconciliation; a carrier adapter for rate quotes, labels, and tracking; and warehouse/ERP sync for fulfillment.
The operations half of the book is where most Magento tutorials stop, so it is covered in depth: threat modeling and dependency security, performance work with caching, database, and search tuning, a test pyramid with PHPUnit, HTTP API tests, and Playwright browser tests, CI pipelines, immutable artifacts, database migrations, zero-downtime deployment and rollback, plus logging, metrics, tracing, and health checks — with troubleshooting drills for cart totals that disagree, missing ERP records, latency spikes, and DI compilation failures after an upgrade.
Six end-to-end walkthroughs (MVP, marketplace, B2B, subscription, click-and-collect, headless) anchor every pattern in the Northstar Supply project, and each chapter closes with an exercise and a recap checklist.
Move from working PHP code to systems that survive production with a practical guide built around PHP 8.3, Composer, Symfony-style dependency injection, and modern operational tooling.
You will learn how to structure a Composer-managed project with reproducible installs, secure dependency policies, typed class constants, enums, readonly classes, value objects, generics through PHPDoc, and PHPStan. The book covers PSR standards, PSR-4 autoloading, constructor injection, and architecture boundaries, then applies them to testing with Pest, PHPUnit, and mutation testing.
The security and data chapters cover allowlist input validation, output encoding, password hashing with Argon2id, authentication and authorization, CSRF and SSRF defenses, secrets management, PDO, transactions, migrations, query optimization, caching, queues, and event-driven design.
API and runtime chapters cover REST, OpenAPI, GraphQL, webhooks, rate limiting, Fibers, ReactPHP, RoadRunner, FrankenPHP, Swoole, profiling with Blackfire and Xdebug, load testing with k6, OPcache, and memory management.
Finally, you will wire up structured logging, Prometheus metrics, OpenTelemetry tracing, health checks, alerts, containers, CI/CD, Terraform, zero-downtime releases, and rollback before building a production order service and evolving it into an event-driven platform.
Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.
See full terms...
We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.
(Yes, some authors have already earned much more than that on Leanpub.)
Learn more about writing on Leanpub
If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).
Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.
Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.
Learn more about Leanpub's ebook formats and where to read them
You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!
Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.
Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.