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.
- 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
- Flow Control – if/else, Switch, For, Foreach, While Loop
- Basic Functions where we pass some data
- Passing Big Data through functions
- Form and file handling
- Session, Cookie
- Object Oriented Programming
- Composer Revolution
- SOLID Design Principle
- Public, Private and Protected
- Constructor and Destructor
- Overriding Methods
- Abstract Class
- Interface with Array
- object iteration
- Dependency Injection and Object Communication
- Final Keyword
- Class Constants
- Object Comparison
- Cloning Objects
- Namespace, Composer and Class Dependency
- More on Reflection
- Dynamic Website
- new Features in PHP 7
- Code repository
Supporting Indigenous Peoples. Protecting the Amazon.http://amazonwatch.org
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.
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. Free App. 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), MOBI (for Kindle) and in the free Leanpub App (for Mac, Windows, iOS and Android). 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.