21,59 €
Learn all the fundamentals of PHP with a book that blends theory with practice to build up the skills you need for modern web development.
Key FeaturesBrush up on basic PHP 7 syntax and work with variables, data types, arrays, and loops Master advanced concepts like building your own frameworks and creating your own applicationsApply your newly learned PHP skills to a variety of real-life business scenariosBook Description
PHP is the preferred server-side scripting language for tech giants such as Facebook, Wikipedia, and Tumblr despite full-stack JavaScript gaining popularity with upcoming developers. This is because PHP performs better when dealing with heavy computations on the back end. In this book, you’ll learn everything you need to get up and running with the latest version of PHP, including package management with tools such as composer, secure database operations, and a whole host of other best practices that will help you stay a step ahead of traditional programmers.
What you will learnUnderstand the fundamentals of PHP and work with classes and inheritanceLearn about database operations and package management with composerTackle common security concerns and pitfalls using authentication and validationBuild effective PHP applications and frameworks for your business needsWho this book is for
If you’re already familiar with another programming language and want to learn about the fundamentals of PHP programming, you’ll find the flow of this book to be an ideal fit. Having a prior understanding of HTML, MySQL, CSS, and JavaScript will be beneficial, but is not mandatory.
David Carr, for the past 10 years, has been developing applications for the web, using mostly PHP. He does this for a living and loves what he does as every day there is something new and exciting to learn. David often attends multiple PHP conferences and local meetups to learn and teach others. He spends a lot of time learning new techniques and actively helping people learn web development through a variety of help groups. He also writes web development tutorials for his website and blog on advancements in web design and development. You can read more about him at his blog "daveismyname". Markus Gray is a full-stack web developer/designer with 11 years of experience, based in Philadelphia. He has diverse and deep interests in most trending technologies. He spends most of his time helping public and private companies and has also worked with the federal government in the department of education. Currently, he is the CEO of Syncware Technologies, Inc. He is extremely passionate about teaching and hopes to spend more and more time helping young developers in the community become proficient in software development.
Sie lesen das E-Book in den Legimi-Apps auf:
Seitenzahl: 184
Veröffentlichungsjahr: 2018
Copyright © 2018 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the authors, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
Acquisitions Editor: Koushik Sen
Content Development Editor: Murtaza Haamid
Production Coordinator: Samita Warang
First published: July 2018
Production reference: 1300718
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK.
ISBN 978-1-78953-590-7
www.packtpub.com
https://mapt.packtpub.com/
Mapt is an online digital library that gives you full access to over 5,000 books and videos, as well as industry leading tools to help you plan your personal development and advance your career. For more information, please visit https://mapt.packtpub.com/ website.
Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at www.PacktPub.com and as a print book customer, you are entitled to a discount on the eBook copy. Get in touch with us at <[email protected]> for more details.
At www.PacktPub.com, you can also read a collection of free technical articles, sign up for a range of free newsletters, and receive exclusive discounts and offers on Packt books and eBooks.
David Carr, for the past 12 years, has been developing applications for the web, using mostly PHP. He does this for a living and loves what he does as every day there is something new and exciting to learn.
David often attends PHP conferences and attends local meetups to learn and teach others.
He spends a lot of time learning new techniques and actively helping other people learn web development through a variety of help groups. He also writes web development tutorials for his website and blog about advancements in web design and development. You can read more about him here: https://daveismyname.blog/.
Markus Gray is a full-stack web developer/designer with 11 years' experience, based in Philadelphia.
He has diverse and deep interests in most trending technologies. He spends most of his time helping public and private companies, and has also worked with the federal government in the department of education. Currently, he is the CEO of Syncware Technologies, Inc. He is extremely passionate about teaching, and hopes to spend more and more time helping young developers in the community become proficient at software development.
If you're interested in becoming an author for Packt, please visit authors.packtpub.com and apply today. We have worked with thousands of developers and tech professionals, just like you, to help them share their insight with the global tech community. You can make a general application, apply for a specific hot topic that we are recruiting an author for, or submit your own idea.
Developing a website is a priority these days in order for your business to have a presence on the internet. Design and development are foundational steps for any website. PHP is commonly used for website and web application development. PHP is a general purpose, server-side scripting language that's designed to make dynamic pages and applications. PHP as a web development option is secure, fast, and reliable, and also offers lots more advantages that make it accessible to a lot of people. We should consider what has made PHP one of the most widely used programming languages in the web industry.
This book gets you up to speed by starting with basic concepts, such as variables, data types, arrays, and loops. It then progresses to more advanced concepts, such as building your own frameworks and creating your app.
The book has been designed for the purpose of reducing the gap between learning and implementation. It provides a lot of real business case scenarios, which will help you to understand the concepts and get started with writing PHP programs as soon as they complete the book.
Chapter 1, Getting Started with PHP, covers the fundamentals of using the PHP programming language. In this chapter, you'll learn basic PHP syntax and program structure. You'll also learn how to use variables, data types, operators, and conditionals.
Chapter 2, Arrays and Loops, shows you how to use the flow control structures. We will specifically cover loops and arrays in this chapter.
Chapter 3, Functions and Classes, teaches you to identify how to define and call functions. We will also cover how to create classes, and how to use the classes and functions together.
Chapter 4, Data Operations, teaches you how to handle input from users and printing outcomes back to them, handling errors gracefully, and learning the basics of using the MySQL database.
Chapter 5, Building a PHP Web Application, teaches you to apply OOP concepts in a framework. We will cover error reporting using the Whoops library and will learn how to handle those errors. We will also cover how to manage and structure our application in a framework.
Chapter 6, Building a PHP Framework, teaches you to build an MVC framework from scratch. Starting from an empty directory, we will build an entire working framework as a starting point for more complex applications.
Chapter 7, Authentication and User Management, teaches you the security aspect of the project, that is, authentication. We will be building login forms which interact with the database to verify the identity of the users. We will also cover how to set up a password recovery mechanism in our application.
Chapter 8, Building a Contacts Management System, teaches you to build a contacts CRUD (Create, Read, Update, and Delete) section, which will have a view page to view an individual contact. We will also be building the comments system for our contact application.
The minimum hardware requirements are as follows:
This book is for anyone interested in learning the fundamentals of PHP programming. For the best experience, you should have basic knowledge of HTML, CSS, JavaScript, and MySQL.
In this book, you will find a number of text styles that distinguish between different kinds of information. Here are some examples of these styles and an explanation of their meaning.
Code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: "Create a new file and name it syntax.php."
Folder names, filenames, file extensions, pathnames, include file names in text are shown as follows: "To remove an element from an array, use the unset function.
A block of code is set as follows:
Any command-line input or output is written as follows:
New terms and important words are shown in bold. Words that you see on the screen, for example, in menus or dialog boxes, appear in the text like this: "So, when we click on the Submit button, the data will be submitted."
Important new programming terms are shown in bold. Conceptual terms are shown in italics.
Warnings or important notes appear in a box like this.
Tips and tricks appear like this.
Before you start this book, we'll install a PHP server, such as WAMP, and a text editor, such as Atom.
