PHP 7: Learn Object Oriented Programming the Hard Way
PHP 7: Learn Object Oriented Programming the Hard Way
Minimum price
Suggested price
PHP 7: Learn Object Oriented Programming the Hard Way

This book is 100% complete

Completed on 2019-05-25

About the Book

"I further believe that object technology holds the potential for fundamental changes in the software industry and that it is here to stay."

Bertrand Meyer wrote, in the preface of his famous book, "Object-Oriented Software Construction".

The best part of the good news is PHP 7, a general-purpose scripting language, well suited for web applications, has now all the core combination of Object-oriented-programming. Now it moves in a direction that would help PHP stay in the competition in the future.

In this book, the core combination of Object Oriented Programming (OOP) has been explained in great detail. Mainly the four ideas govern the OOP principle – a structuring method, reliability discipline, an epistemological principle and a classification technique. These ideas have been stated step by step so that one could learn them and use them in the web applications.

The structuring method shows us how you can decompose and reuse your code in PHP 7. The reliability discipline helps us take the radical approach to the problems of building software. Now we can solve those problems by adhering to contracts or interfaces. The epistemological principle addresses the core question of how we define the classes and what we can do with those classes. This formally expresses the idea of Abstraction, Encapsulation and Information Hiding principles. 

Finally, we come to know about the classification technique or discipline that relies heavily on inheritance. 

This book teaches you how we can define classes. We learn how programs manipulate those classes and the corresponding objects? How can we maintain a relationship between classes so that they can exchange messages? How can these ideas be applied in reality so that they relate to the key software engineering concerns as extendibility and efficiency? 

Answers to these questions are here. 

It's described in a lucid way so that the "learning OOP the hard way" becomes easy. 

This book provides you the tools that are straightaway practical to a wide range of problems in web applications.

About the Author

Sanjib Sinha
Sanjib Sinha

Sanjib Sinha is an author and IT Consultant. As a certified .NET developer he Won Microsoft Community Contributor Award in 2011. He authors many books that include Python Security Programming, PHP, C#, ASP.NET and Laravel Web Application, Dart and Flutter Mobile Application, and Java.

Sanjib Sinha has written Beginning Laravel 5.8 (two editions), Beginning Ethical Hacking with Python, Beginning Ethical Hacking with Kali Linux, Bug Bounty Hunting for Web Security, and A Quick Start Guide to Dart Programming for Apress/Springer.

Table of Contents

  • Who Should Read this Book
  • Introduction to PHP 7
  • What is PHP 7
  • How to upgrade to PHP 7 in linux
  • What PHP does and how it Works
  • Introduction to MySQL and RDBMS
  • API, Connector, driver and extension
  • Digging Deep into PHP 7
  • Integer, String
  • Variables – Static, Local, Global and Super Global
  • Array
  • Flow Control – if/else, Switch, For, Foreach, While Loop
  • Functions
  • Basic Functions where we pass some data
  • Passing Big Data through functions
  • Form and file handling
  • Session, Cookie
  • Email
  • Object Oriented Programming
  • Composer Revolution
  • SOLID Design Principle
  • Classes
  • Objects
  • Public, Private and Protected
  • Constructor and Destructor
  • Encapsulation
  • Modularity
  • Inheritance
  • Autoloading
  • Overriding Methods
  • Overloading
  • Abstract Class
  • Interface
  • Interface with Array
  • object iteration
  • Dependency Injection and Object Communication
  • Final Keyword
  • Static
  • Class Constants
  • Object Comparison
  • Cloning Objects
  • Reflection
  • Namespace, Composer and Class Dependency
  • More on Reflection
  • Dynamic Website
  • new Features in PHP 7
  • Code repository

Causes Supported

Amazon Watch

Supporting Indigenous Peoples. Protecting the Amazon.

Amazon Watch is a nonprofit organization founded in 1996 to protect the rainforest and advance the rights of indigenous peoples in the Amazon Basin. We partner with indigenous and environmental organizations in campaigns for human rights, corporate accountability and the preservation of the Amazon's ecological systems.

We envision a world that honors and values cultural and biological diversity and the critical contribution of tropical rainforests to our planet's life support system. We believe that indigenous self-determination is paramount, and see that indigenous knowledge, cultures and traditional practices contribute greatly to sustainable and equitable stewardship of the Earth. We strive for a world in which governments, corporations and civil society respect the collective rights of indigenous peoples to free, prior and informed consent over any activity affecting their territories and resources. We commit, in the spirit of partnership and mutual respect, to support our indigenous allies in their efforts to protect life, land, and culture in accordance with their aspirations and needs.

Authors have earned$8,432,149writing, publishing and selling on Leanpub,
earning 80% royalties while saving up to 25 million pounds of CO2 and up to 46,000 trees.

Learn more about writing on Leanpub

The Leanpub 45-day 100% Happiness Guarantee

Within 45 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

See full terms

Free Updates. DRM Free.

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), EPUB (for phones and tablets) and MOBI (for 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

Write and Publish on Leanpub

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. It really is that easy.

Learn more about writing on Leanpub