Jump Start PHP Environment
117 pages
English

Vous pourrez modifier la taille du texte de cet ouvrage

Découvre YouScribe en t'inscrivant gratuitement

Je m'inscris

Jump Start PHP Environment , livre ebook

-

Découvre YouScribe en t'inscrivant gratuitement

Je m'inscris
Obtenez un accès à la bibliothèque pour le consulter en ligne
En savoir plus
117 pages
English

Vous pourrez modifier la taille du texte de cet ouvrage

Obtenez un accès à la bibliothèque pour le consulter en ligne
En savoir plus

Description

Many entry level PHP developers want a quick path to glory, a shortcut to "knowing PHP." Too many books and tutorials go straight into a pre-made, awful environment that just wants you to code, with no regard for security, version control, or other absolutely essential practices. This book is aimed at the absolute beginner who wants to start learning PHP, but aims to set you up with a thorough understanding of what makes for a good, modern, adaptable PHP environment before you start diving into PHP itself.

This book will cover a the essential building blocks of a good PHP environment, including covering topics such as:

  • The anatomy of a web request
  • The importance of a good IDE
  • Using Composer for package management
  • Version control with Git and GitHub
  • Deployment and hosting options
  • Using virtual machines
  • Build a sample app from scratch and deploy it -- the right way
  • And much more!

Sujets

Informations

Publié par
Date de parution 15 décembre 2015
Nombre de lectures 2
EAN13 9781457193057
Langue English

Informations légales : prix de location à la page 0,0950€. Cette information est donnée uniquement à titre indicatif conformément à la législation en vigueur.

Extrait

Summary of Contents
Preface 1. The Anatomy of Web Requests 2. The Programming Environment 3. The Application Environment 4. Virtual Machines 5. Versioning Systems 6. Deployment and Hosting 7. Composer 8. Learn by Example: A Web App from Scratch
JUMP START PHP ENVIRONMENT

BY BRUNO ŠKVORC
Jump Start PHP Environment

by Bruno Škvorc

Copyright © 2015 SitePoint Pty. Ltd.

Product Manager:  Simon Mackie

English Editor:  Kelly Steele

Cover Designer:  Alex Walker


Notice of Rights
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 embodied in critical articles or reviews.


Notice of Liability
The author and publisher have made every effort to ensure the accuracy of the information herein. However, the information contained in this book is sold without warranty, either express or implied. Neither the authors and SitePoint Pty. Ltd., nor its dealers or distributors will be held liable for any damages to be caused either directly or indirectly by the instructions contained in this book, or by the software or hardware products described herein.


Trademark Notice
Rather than indicating every occurrence of a trademarked name as such, this book uses the names only in an editorial fashion and to the benefit of the trademark owner with no intention of infringement of the trademark.


Published by SitePoint Pty. Ltd.

48 Cambridge Street  Collingwood VIC  Australia  3066

Web: www.sitepoint.com
Email: business@sitepoint.com


About Bruno Škvorc
Bruno, a web developer from Croatia, is SitePoint's senior PHP editor by day, and a developer evangelist for Diffbot.com by night. A big fan of working on treadmill desks, he spends the most of his days walking through various projects and problems, and then exposing them on SitePoint.com. In his free time (i.e. when his beagle is asleep) he swims, #stronglifts, plays (board) games and paints miniatures.

About SitePoint
SitePoint specializes in publishing fun, practical, and easy-to-understand content for web professionals. Visit http://www.sitepoint.com/ to access our blogs, books, newsletters, articles, and community forums. You’ll find a stack of information on JavaScript, PHP, Ruby, mobile development, design, and more.

To my beautiful Mateja, and adorable Rita, without whom this book would have been written much sooner
Preface

The WWW
In this section, I will answer the three Ws. No, not that www―the three Ws of this book:

Why was this book written?
What's it about?
Who is it for?

The What and Why
Before I explain who the book is for, I'd like to start by explaining what this book is about and what prompted its writing.

The Why
As the editor for SitePoint's PHP channel , I communicate daily with many PHP developers. Almost every developer comes from a different background―educational, racial, geographical―so the channel is truly a melting pot of cultures and approaches. Some are formally trained computer scientists, others are self-taught freelancers. Some are well-versed in enterprise etiquette, rigor, and culture; others just can't wait to just churn out code and see it work. In all of my time working for SitePoint, I've never once met two developers who have the same approach to writing and coding.
Trying to create a channel that works cohesively with such an array or writers was actually quite challenging. The writing part was easy to standardize―I enforced the Markdown format (no need to concern yourself with this if you don't know what it is) rather than HTML or Word files, passed on some links to valuable tools such as spell-checkers and text smell detectors (tools that capitalize your title, check for repeated phrases, isolate misused phrases, and so on). But when you're responsible for editing and checking hundreds of posts, it's not the writing that's the biggest problem―it's the code. Writers would send their code in zip archives alongside their articles, as if thrown into a cardboard box, duct-taped, and shipped.
The code was everything from simply messy to incompatible with my version of PHP, and thus it was insanely difficult to verify―after all, letting a malfunctioning demo go live alongside a tutorial would be unforgivable! Imagine receiving code samples from 100 different people, each configured for a separate combination of PHP + server + PHP extensions and other factors. There's simply no way to manually configure your computer fast enough to be able to go through them all reliably in a given time frame. Code needs standardization, and in big teams, such as ours in SitePoint's PHP channel, this is of utmost importance.
To remove this barrier, I used all the approaches I talk about in this book. To make them work for you and to have code that is automatically compatible with all other developers and their computers instantly would be minutes of work; however, this book was written to help you understand what is going on in these configurations, and how exactly this compatibility was achieved. Why would you want to know this, you might wonder?
Two reasons:

You'll gain a solid foundation extremely early in your career, absorbing good practices before you've had a chance to be exposed to bad ones. I cannot stress enough how important this is; the amount of energy it takes to unlearn something is colossal, especially if you're told you're wrong , because we have a natural predisposition to take a defensive stance―even if, deep down, we might know the other party is right.
If you're serious about building a PHP career, chances are you'll end up leading or joining a team of developers one day. Maybe it will be a freelance team building small websites for individual clients; perhaps you'll lead fifty people in an enterprise effort to modernize a corporation's intranet application―who knows, but you'll have to work with other developers eventually. Trust me when I tell you that you won't be a one-man army forever (or at all!). When working with others, it's vitally important you all have the exact same software setup in order to prevent excuses such as "What do you mean broken? It works on my machine!" With the instructions as laid out in this book, you'll understand completely what's necessary to set this up team-wide. Your team will thank you in the long run, even if you'll initially slow down progress by making everyone adapt to these practices.
With that out of the way, what will we be learning in this tome?

The What
This book will, in great detail, explain what you need to do to prepare to start learning PHP . This might sound confusing (preparing for a start?), so let me explain.
Most people, when they become interested in web development, randomly google for keywords and click the first results they find; "how to make a website," "build php mysql site tutorial," and "learn to code," the search queries will say. Inevitably, almost all newbies end up downloading XAMPP or WAMP (installer tools that get PHP and associated packages set up on your machine), setting up a basic PHP installation on their computers, and writing the legendary Hello World "app." Without fail, this is where over 70% of the newbies are lost. XAMPP, WAMP, EasyPHP, and similar bundles that get you up and running fast are―while practical at first―deterrents in the long run. We'll talk about this in more depth in later chapters, but suffice to say that while these bundles are easy to start, but hard to continue with, this book takes the exact opposite approach: more complex to start, but easy to keep going.
I'll show you how to configure your development environment in such a way that you'll be able to develop without worrying about impacting anything on your computer or its operating system, and can share your code with others without concern about whether it will be compatible with their setup. What's more, you'll be able to build and test applications for various versions of PHP without needing to reinstall anything: your different versions of PHP will never conflict, and you can even test your applications on different web servers as well.
Your code will be cross-platform compatible, meaning you'll be able to run it and keep developing it anywhere you go, no matter which computer you land on or which operating system powers it. I'll teach you about the powers of a good IDE (integrated development environment), explain the powerful concepts of application environments, show you the mysteries of virtual machines, and prepare you for the professional PHP world.
If any of these terms sound intimidating or complex to you right now, don't despair. We'll cover all of them later on. You will understand everything, that's a promise.

The Who
So, who is this book for?
Developers of beginner to intermediate level will benefit from this book. Even for those familiar with some of the concepts, this book will hold some value. Remember, everyone you ever meet will know something you don't. You can always learn more, even if most of it sounds familiar.
If you are interested in improving your current development workflow and often find yourself confused by missing PHP extensions or features while developing applications, and frequently running into errors about software you need but are yet to install―this book is for you. If your computer is so full of software used to make other people's code run well on your machine, this book is definitely for you. By reading it, you'll be able to restore your computer to an almost factory level of performance while keeping all apps you come across compatible with it.
If you're just starting out with PHP, this book should be the very first resource you read. It will explain not only isolated development environments and conflict prevention, but also the inner workings of web requests and

  • Univers Univers
  • Ebooks Ebooks
  • Livres audio Livres audio
  • Presse Presse
  • Podcasts Podcasts
  • BD BD
  • Documents Documents