Persistence in PHP with the Doctrine ORM

Persistence in PHP with the Doctrine ORM

Author: Kévin Dunglas

Publisher: Packt Publishing Ltd

Published: 2013-12-18

Total Pages: 170

ISBN-13: 1782164111

DOWNLOAD EBOOK

Persistence in PHP with the Doctrine ORM is a concise, fast, and focused guide to build a blog engine with advanced features such as native queries and lifecycle callbacks. This book is primarily intended for PHP developers and architects who want to increase their skills in the field of Persistence and ORM to map the data they are working on to objects they are using in programming. Basic knowledge of databases and PDO and working knowledge of PHP namespaces is a prerequisite.


PHP Persistence

PHP Persistence

Author: Michael Romer

Publisher: Apress

Published: 2016-12-19

Total Pages: 118

ISBN-13: 1484225597

DOWNLOAD EBOOK

Take the pain out of dealing with relational databases in an object-oriented programming world. With this short book, you can save time and money by simply coding less while accomplishing more with the Doctrine persistence framework, a leading persistence solution for PHP programmers and web developers. PHP Persistence teaches you about PHP persistence and how to use it effectively for your database-driven applications. Bestselling author Michael Romer leverages his own vast experience to show you what you need to know about Doctrine 2 and how to use it in your own projects. Along the way you’ll learn about powerful persistence techniques, such as object-relational mapping (ORM) in PHP. What You'll Learn Define entities and references between entities Manage entities Master the Doctrine Query Language Use appropriate command-line tools for PHP persistence Program for caching Who This Book Is For Experienced PHP programmers and web developers with some exposure to PHP.


Learning Phalcon PHP

Learning Phalcon PHP

Author: Calin Rada

Publisher: Packt Publishing Ltd

Published: 2015-08-26

Total Pages: 328

ISBN-13: 1783555106

DOWNLOAD EBOOK

Learn Phalcon interactively and build high performance web applications About This Book Learn how to install and configure Phalcon PHP on your server Develop a fully functional multi-module application with Phalcon PHP A step-by-step guide with in-depth coverage of Phalcon and best practices Who This Book Is For If you are a web developer and want to build effective web applications with Phalcon PHP, then this book is ideal for you. The book does not assume detailed knowledge of PHP frameworks. What You Will Learn Compile and install Phalcon from source code Set up an MVC project and learn how to use the Dependency Injection (DI), configuration, and routing Get to grips with Phalcon's ORM, ODM, validation and caching, and generate models using Phalcon Developer Tools Create a command-line application from scratch Write a fully functional REST module with Phalcon PHP Use Volt as template engine to create your first views Understand how session works and learn how to implement an authentication system In Detail Phalcon is a full-stack PHP framework implemented as a C extension. Building applications with Phalcon will offer you lower resource consumption and high performance whether your application runs on a Linux machine or a Windows one. Phalcon is loosely coupled, allowing you to use its objects as glue components based on the needs of your application. Phalcon PHP's mission is to give you an advanced tool to develop faster websites and applications. This book covers the most common and useful parts of PhalconPHP, which will guide you to make the right decisions while developing a Phalcon-driven application. You will begin the journey by installing and setting up Phalcon for your environment followed by the development of each module. You will be introduced to Phalcon's ORM and ODM. Furthermore, you will also be able to create the first models and database architecture for your project. You will then cover command-line applications, API module, volt syntax, and hierarchical views. Installing and working with Node and Bower for assets management will also be covered. Finally, you will gain insights into creating the backoffice and frontend module along with best practices and resources for development with Phalcon PHP. By the end of this book, you will be able to confidently develop any kind of application using the Phalcon PHP framework in a short time. Style and approach This step-by-step guide will walk you through the fundamentals of Phalcon PHP. It will then help you to create a simple but fully functional news website and gain advanced knowledge of how Phalcon PHP works.


Domain-Driven Design in PHP

Domain-Driven Design in PHP

Author: Carlos Buenosvinos

Publisher: Packt Publishing Ltd

Published: 2017-06-14

Total Pages: 387

ISBN-13: 1787288463

DOWNLOAD EBOOK

Real examples written in PHP showcasing DDD Architectural Styles, Tactical Design, and Bounded Context Integration About This Book Focuses on practical code rather than theory Full of real-world examples that you can apply to your own projects Shows how to build PHP apps using DDD principles Who This Book Is For This book is for PHP developers who want to apply a DDD mindset to their code. You should have a good understanding of PHP and some knowledge of DDD. This book doesn't dwell on the theory, but instead gives you the code that you need. What You Will Learn Correctly design all design elements of Domain-Driven Design with PHP Learn all tactical patterns to achieve a fully worked-out Domain-Driven Design Apply hexagonal architecture within your application Integrate bounded contexts in your applications Use REST and Messaging approaches In Detail Domain-Driven Design (DDD) has arrived in the PHP community, but for all the talk, there is very little real code. Without being in a training session and with no PHP real examples, learning DDD can be challenging. This book changes all that. It details how to implement tactical DDD patterns and gives full examples of topics such as integrating Bounded Contexts with REST, and DDD messaging strategies. In this book, the authors show you, with tons of details and examples, how to properly design Entities, Value Objects, Services, Domain Events, Aggregates, Factories, Repositories, Services, and Application Services with PHP. They show how to apply Hexagonal Architecture within your application whether you use an open source framework or your own. Style and approach This highly practical book shows developers how to apply domain-driven design principles to PHP. It is full of solid code examples to work through.


Persistence in PHP with the Doctrine ORM

Persistence in PHP with the Doctrine ORM

Author: Kevin Dunglas

Publisher: Packt Pub Limited

Published: 2013-12

Total Pages: 114

ISBN-13: 9781782164104

DOWNLOAD EBOOK

Persistence in PHP with the Doctrine ORM is a concise, fast, and focused guide to build a blog engine with advanced features such as native queries and lifecycle callbacks.This book is primarily intended for PHP developers and architects who want to increase their skills in the field of Persistence and ORM to map the data they are working on to objects they are using in programming. Basic knowledge of databases and PDO and working knowledge of PHP namespaces is a prerequisite.


The Art of Modern PHP 8

The Art of Modern PHP 8

Author: Joseph Edmonds

Publisher: Packt Publishing Ltd

Published: 2021-10-26

Total Pages: 421

ISBN-13: 1800563221

DOWNLOAD EBOOK

Discover how to apply the principles of OOP, types, and package management the right way Key FeaturesExplore the latest PHP 8.1 features and modern web development practicesRefactor your legacy codebase using modern features and styles in PHPCreate your own Composer packages that can be reused across all PHP projectsBook Description PHP has come a long way since its introduction. While the language has evolved with PHP 8, there are still a lot of websites running on a version of PHP that is no longer supported. If you are a PHP developer working with legacy PHP systems and want to discover the tenants of modern PHP, this is the book for you. The Art of Modern PHP 8 walks you through the latest PHP features and language concepts. The book helps you upgrade your knowledge of PHP programming and practices. Starting with object-oriented programming (OOP) in PHP and related language features, you'll work through modern programming techniques such as inheritance, understand how it contrasts with composition, and finally look at more advanced language features. You'll learn about the MVC pattern by developing your own MVC system and advance to understanding what a DI container does by building a toy DI container. The book gives you an overview of Composer and how to use it to create reusable PHP packages. You'll also find techniques for deploying these packages to package libraries for other developers to explore. By the end of this PHP book, you'll have equipped yourself with modern server-side programming techniques using the latest versions of PHP. What you will learnUnderstand how to use modern PHP features such as objects, types, and moreGet to grips with PHP package management using ComposerExplore dependency injection for your PHP applicationsFind out what the differences are between legacy and modern PHP 8 code and practicesWrite clean PHP code and implement design patternsGet hands-on with modern PHP using examples applying MVC and DI techniquesWho this book is for The book is for existing PHP developers and CTO-level professionals who are working with PHP technologies, including legacy PHP, in production. The book assumes beginner-level knowledge of PHP programming as well as experience with server-side development.


MongoDB and PHP

MongoDB and PHP

Author: Steve Francia

Publisher: "O'Reilly Media, Inc."

Published: 2012-01-23

Total Pages: 77

ISBN-13: 1449324843

DOWNLOAD EBOOK

What would happen if you optimized a data store for the operations application developers actually use? You’d arrive at MongoDB, the reliable document-oriented database. With this concise guide, you’ll learn how to build elegant database applications with MongoDB and PHP. Written by the Chief Solutions Architect at 10gen—the company that develops and supports this open source database—this book takes you through MongoDB basics such as queries, read-write operations, and administration, and then dives into MapReduce, sharding, and other advanced topics. Get out of the relational database rut, and take advantage of a high-performing system optimized for operations and scale. Learn step-by-step the tools you need to build PHP applications with MongoDB Perform Create, Read, Update, and Delete (CRUD) operations, and learn how to perform queries to retrieve data Administer your database, and access and manipulate data with the MongoDB Shell Use functions to work with sets, arrays, and multiple documents to perform synchronous, asynchronous, and atomic operations Discover PHP’s community tools and libraries, and why they’re valuable Work with regular expressions, aggregation, MapReduce, replication, and sharding


Mastering Symfony

Mastering Symfony

Author: Sohail Salehi

Publisher: Packt Publishing Ltd

Published: 2016-04-26

Total Pages: 290

ISBN-13: 1784394262

DOWNLOAD EBOOK

Orchestrate the designing, development, testing, and deployment of web applications with Symfony About This Book Create a robust and reliable Symfony development pipeline using Amazon's cloud platform Cut development and maintenance costs by defining crystal clear features and possible scenarios for each feature before implementation Follow detailed examples provided in each chapter to create a task management application Who This Book Is For If you are a PHP developer with some experience in Symfony and are looking to master the framework and use it to its full potential, then this book is for you. Though experience with PHP, object-oriented techniques, and Symfony basics is assumed, this book will give you a crash course on the basics and then proceed to more advanced topics. What You Will Learn Install and configure Symfony and required third-party bundles to develop a task management application Set up a continuous integration server to orchestrate automatic builds every time you add a new feature to your project Reduce maintenance costs dramatically using Behaviour Driven Development (BDD) Create a slick user interface using the Bootstrap framework Design robust business logic using Doctrine Build a comprehensive dashboard and secure your project using the Sonata project Improve performance using Redis, Memcache, and Varnish Create customized Symfony commands and add them to your console In Detail In this book, you will learn some lesser known aspects of development with Symfony, and you will see how to use Symfony as a framework to create reliable and effective applications. You might have developed some impressive PHP libraries in other projects, but what is the point when your library is tied to one particular project? With Symfony, you can turn your code into a service and reuse it in other projects. This book starts with Symfony concepts such as bundles, routing, twig, doctrine, and more, taking you through the request/response life cycle. You will then proceed to set up development, test, and deployment environments in AWS. Then you will create reliable projects using Behat and Mink, and design business logic, cover authentication, and authorization steps in a security checking process. You will be walked through concepts such as DependencyInjection, service containers, and services, and go through steps to create customized commands for Symfony's console. Finally, the book covers performance optimization and the use of Varnish and Memcached in our project, and you are treated with the creation of database agnostic bundles and best practices. Style and approach A step-by-step guide to mastering Symfony while developing a task management application. Each chapter comes with detailed examples.


Symfony2 Essentials

Symfony2 Essentials

Author: Wojciech Bancer

Publisher: Packt Publishing Ltd

Published: 2015-09-08

Total Pages: 158

ISBN-13: 1784395935

DOWNLOAD EBOOK

A fast-paced developer's guide to using Symfony2 to make your everyday web development work more efficient About This Book Build web applications with the latest features of Symfony2 Focus on common tasks such as creating CRUD, creating an API, and providing a login Install and configure Symfony2 and evaluate it for your everyday needs Who This Book Is For This book is aimed at experienced programmers, especially those familiar with a closely related technology such as Yii or Laravel, but who now want to learn Symfony quickly. This book will also prove beneficial for experienced PHP developers who want to explore and evaluate new frameworks and their possibilities in day-to-day tasks. What You Will Learn Familiarise yourself with the Symfony framework, its latest features, and how to install it Discover the concept of bundles and their application Handle translations within Symfony, enable translations, and learn how to handle database translations Understand Symfony's security model, how to secure applications, and implement a custom authentication provider by using FOSUserBundle Explore the use of Twig, find best practices around its usage, and discover its common pitfalls Create internal commands that will handle sending e-mail reminders for your app Develop a plugin for the profiler to provide custom information about your application Deploy applications based on Symfony2 using various methods including simple FTP copying, rsync, CI deployment, and more In Detail Symfony is a free and open source PHP MVC web application development framework, which helps you create and maintain web applications and replace recurrent coding tasks. It integrates with an independent library, PHPUnit, to give you a rich testing framework. It is one of the best and most popular frameworks available on the market. Popular projects such as Drupal, Laravel, and phpBB also use Symfony. Its well-organized structure, clean code, and good programming practices make web development a breeze. Symfony2 Essentials will guide you through the process of creating a sample web application with Symfony2. You will create a To-Do application, using a few of the most commonly used Symfony2 components, and discover how to perform these development tasks efficiently. This book introduces you to the Symfony framework with a quick installation guide and a brief explanation of its key features including the MVC architecture, twig templating, dependency injection, and more. You will learn to manage dependencies, create controllers, views, and API calls, and secure your application. Next, you will go through the steps that are common for most web applications, which include writing CRUD and AJAX, handling forms, validation, translations, and the command-line interface, and e-mail sending features. The book ends with best practices, debugging, profiling, and deployment procedures. By the end of this book, you will have learned how to combine a Symfony2 framework with other open source code to speed up the development process. Style and approach A fast-paced, step-by-step guide with examples on how to write the most common pieces of code while developing typical web applications with Symfony.


Symfony 5

Symfony 5

Author: Fabien Potencier

Publisher: Symfony SAS

Published: 2019-11-08

Total Pages: 308

ISBN-13: 9782918390374

DOWNLOAD EBOOK