Modern PHP new features and good practices

Contents: Language features. The new PHP -- Features -- Good practices. Standards -- Components -- Good practices -- Deployment, testing, and tuning. Hosting -- Provisioning -- Tuning -- Deployment -- Testing -- Profiling -- HHVM and Hack -- Community -- A. Installing PHP -- Local development enviro...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
1. Verfasser: Lockhart, Josh (VerfasserIn)
Format: Buch
Sprache:English
Veröffentlicht: Beijing [u.a.] O'Reilly 2015
Ausgabe:1. ed.
Schlagworte:
Online-Zugang:Inhaltstext
Inhaltsverzeichnis
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!

MARC

LEADER 00000nam a22000008c 4500
001 BV042507647
003 DE-604
005 20170718
007 t
008 150416s2015 xxuad|| |||| 00||| eng d
010 |a 2016304909 
015 |a 15,N03  |2 dnb 
016 7 |a 1064277519  |2 DE-101 
020 |a 9781491905012  |9 978-1-491-90501-2 
020 |a 1491905018  |9 1-4919-0501-8 
024 3 |a 9781491905012 
035 |a (OCoLC)908336708 
035 |a (DE-599)DNB1064277519 
040 |a DE-604  |b ger  |e rakddb 
041 0 |a eng 
044 |a xxu  |c XD-US 
049 |a DE-1050  |a DE-11  |a DE-1043  |a DE-Aug4  |a DE-M100  |a DE-860  |a DE-83 
050 0 |a QA76.73.P224 
050 0 |a QA76.73.P224 L63 2015 
082 0 |a 004 
082 0 |a 005.2/762 
082 0 |a 005.133  |2 22/ger 
084 |a ST 250  |0 (DE-625)143626:  |2 rvk 
084 |a 004  |2 sdnb 
100 1 |a Lockhart, Josh  |e Verfasser  |0 (DE-588)1069518158  |4 aut 
245 1 0 |a Modern PHP  |b new features and good practices  |c Josh Lockhart 
250 |a 1. ed. 
264 1 |a Beijing [u.a.]  |b O'Reilly  |c 2015 
300 |a XVII, 246 S.  |b Ill., graph. Darst. 
336 |b txt  |2 rdacontent 
337 |b n  |2 rdamedia 
338 |b nc  |2 rdacarrier 
520 |a Contents: Language features. The new PHP -- Features -- Good practices. Standards -- Components -- Good practices -- Deployment, testing, and tuning. Hosting -- Provisioning -- Tuning -- Deployment -- Testing -- Profiling -- HHVM and Hack -- Community -- A. Installing PHP -- Local development environments. 
650 4 |a PHP (Computer program language) 
650 4 |a Web sites--Design 
650 4 |a Application software--Development 
650 0 7 |a PHP  |0 (DE-588)4546126-0  |2 gnd  |9 rswk-swf 
650 0 7 |a API  |0 (DE-588)4430243-5  |2 gnd  |9 rswk-swf 
689 0 0 |a PHP  |0 (DE-588)4546126-0  |D s 
689 0 1 |a API  |0 (DE-588)4430243-5  |D s 
689 0 |5 DE-604 
776 0 8 |i Erscheint auch als  |n Online-Ausgabe  |z 978-1-491-90517-3 
776 0 8 |i Erscheint auch als  |n Online-Ausgabe  |z 978-1-491-90518-0 
856 4 2 |m X:MVB  |q text/html  |u http://deposit.dnb.de/cgi-bin/dokserv?id=5119295&prov=M&dok_var=1&dok_ext=htm  |3 Inhaltstext 
856 4 2 |m HBZ Datenaustausch  |q application/pdf  |u http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=027942232&sequence=000002&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA  |3 Inhaltsverzeichnis 
943 1 |a oai:aleph.bib-bvb.de:BVB01-027942232 

Datensatz im Suchindex

_version_ 1806331072943751168
adam_text Titel: Modern PHP Autor: Lockhart, Josh Jahr: 2015 Table of Contents Preface. xiii Part I. Language Features 1. The NewPHP. 1 Past I Present 2 Future 3 2. Features. 5 Namespaces 5 Why We Use Namespaces 7 Declaration 8 Import and Alias 9 Helpful l ips 11 Code to an Interface 13 Traits 17 Why We Use Traits IS How to Create a Trait 19 How to Use a Trait 21 Generators 22 Create a Generator 22 Use a Generator 23 Closures 23 Create 23 Attach State 27 Zend O Pc ache 29 Enable Zend OPcache 29 Configure Zend OPcache 31 Use Zend OPcache 31 Built-in HTTP server 32 Start the Server 32 Configure the Server 33 Router Scripts 33 Detect the Built-in Server 34 Drawbacks 34 What’s Next 34 Partii. Good Practices 3. Standards. 37 PUP-PIG to the Rescue 38 Framework Interoperability 38 Interfaces 39 Autoloading 39 Style 39 What Is a PSR? 40 PSR-1: Basic Code Style 40 PSR-2: Strict Code Style 41 PSR-3: Logger Interface 45 Write a PSR-3 Logger 46 Use a PSR-3 Logger 47 PSR-4: Autoloaders 48 Why Autoloaders Are Important 48 The PSR-4 Autoloader Strategy 49 How to Write a PSR-4 Autoloader (and Why You Shouldn’t) 49 4. Components. 51 Why Ike Components? 51 What Are Components? 52 Components Versus Frameworks 53 Not All Frameworks Are Bad 54 Use the Right Tool lor the Job 55 Lind Components 55 Shop 56 Choose 56 Leave feedback 57 Use PI IP (iomponents 57 vi | Table of Contents How to Install Composer 58 How to Use Composer 59 Example Project 61 Composer and Private Repositories 64 Create PHP Components 66 Vendor and Package Names 66 Namespaces 66 Filesystem Organization 67 The composer.json File 68 The README file 70 Component Implementation 71 Version Control 72 Packagist Submission 73 Using the Component 74 5. Good Practices. Sanitize, Validate, and Escape Sanitize Input Validate Data Escape Output Passwords Never Know User Passwords Never Restrict User Passwords Never Email User Passwords Hash User Passwords with bcrypt Password Hashing API Password Hashing API for PHP 5.5.0 Dates, Times, and Time Zones Set a Default Time Zone The DateTime Class The Datelnterval Class The Date'TimeZone Class The DatePeriod Class The nesbot/carbon Component Databases The PDO Extension Database Connections and DSNs Prepared Statements Query Results Transactions Multibyte Strings Character Encoding 75 75 76 79 80 80 81 81 81 82 82 87 87 88 88 89 91 92 93 93 93 93 96 98 100 103 104 Table of Contents | vii Output UTF-8 Data 105 Streams 106 Stream Wrappers 106 Stream Context 109 Stream Filters 110 Custom Stream Filters 112 Frrors and Exceptions 115 Exceptions 115 E x c e p t i o n H a n d 1 e r s 118 Errors 119 Error Handlers 121 Errors and Exceptions During Development 123 Production 124 Part III. Deployment, Testing, and Tuning 6. Hosting. . 129 Shared Server 129 Virtual Private Server 130 Dedicated Server 131 I’aaS 131 Choose a Hosting Plan 132 7. Provisioning. . 133 Our Coal 134 Server Setup 134 First Login 134 Sottware Updates 135 Non root User 135 SSI 1 Key-Pair Authentication 136 Disable Passwords and Root Login 138 PUP -PPM 138 1 nstall 139 Clohal Contiguralion 139 Pool ('.onliguration 140 143 Install 143 Virtual 1 lost 143 Automate Server Provisioning 146 1 telegale Server Provisioning 146 Further Reading 147 viii | Table of Contents What’s Next 147 8. Tuning. . 149 The php.ini File 149 Memory 150 Zend OPcache 151 File Uploads 152 Max F.xeculion Time 153 Session Handling 154 Output Buffering 155 Realpath Cache 155 Up Next 155 9. Deployment. . 157 Version Control 157 Automate Deployment 157 Make It Simple 158 Make It Predictable 158 Make It Reversible 158 Capistrano 158 How It Works 158 install 159 Con figure 159 Authenticate 161 Prepare the Remote Server 161 Capistrano Hooks 162 Deploy Your Application 163 Roll Back Your Application 163 Further Reading 163 What’s Next 163 10. Testing. . 165 Why Do We Test? 165 When Do We Test? 166 Before 166 During 166 After 166 What Do We Test? 166 How Do We lest? 167 Unit Tests 167 Test-Driven Development (TDD) 167 Behavior-Driven Development (BDD) 167 Table of Contents IX PHPUnit 1DS Directory Structure *69 Install PHPUnit 170 Install Xclehug 17 ® Configure PHPUnit * 7 * The Whovian Class *72 The WhovianTest Test Case 173 Run Tests * 7 ~* Code Coverage *76 Continuous Testing with Travis Cl 177 Setup * 77 Run *'8 Further Reading 178 What’s Next 179 11. Profiling. 181 When to Use a Protiler 181 Types ol Profilers 181 Xclehug 182 Configure 182 Trigger 183 Analyze 183 XHProf 184 Install 184 XHCUI 184 Configure 185 Trigger 185 New Relic Profiler 186 BKtcklire Profiler 186 Further Reading 186 What’s Next 186 12. HHVM and Hack. 187 Hl lYM 187 PHP at l aeehook 188 HHVM and /.end Fngine Parity 189 Is HH\'M Right for Me? 190 Install " 190 Configure 191 I'.xtensions 192 Monitor HHVM with Supervisorcl 192 11H \ M, Tast(.( 1 1, and Nginx 194 x | Table of Contents The Hack Language 195 Convert PHP to Hack 196 What is a Type? 196 Static Typing 198 Dynamic Typing 198 Hack Goes Both Ways 199 Hack Type Checking 199 Hack Modes 200 Hack Syntax 200 Hack Data Structures 202 HHVM/Hack vs. PHP 203 Further Reading 204 13. Community.205 Local PUG 205 Conferences 205 Mentoring 206 Stay Up-to-Date 206 Websites 206 Mailing Lists 206 Twitter 206 Podcasts 206 Humor 207 A. Installing PHP.209 B. Local Development Environments. 229 Index. 237 Table of Contents | xi
any_adam_object 1
author Lockhart, Josh
author_GND (DE-588)1069518158
author_facet Lockhart, Josh
author_role aut
author_sort Lockhart, Josh
author_variant j l jl
building Verbundindex
bvnumber BV042507647
callnumber-first Q - Science
callnumber-label QA76
callnumber-raw QA76.73.P224
QA76.73.P224 L63 2015
callnumber-search QA76.73.P224
QA76.73.P224 L63 2015
callnumber-sort QA 276.73 P224
callnumber-subject QA - Mathematics
classification_rvk ST 250
ctrlnum (OCoLC)908336708
(DE-599)DNB1064277519
dewey-full 004
005.2/762
005.133
dewey-hundreds 000 - Computer science, information, general works
dewey-ones 004 - Computer science
005 - Computer programming, programs, data, security
dewey-raw 004
005.2/762
005.133
dewey-search 004
005.2/762
005.133
dewey-sort 14
dewey-tens 000 - Computer science, information, general works
discipline Informatik
edition 1. ed.
format Book
fullrecord <?xml version="1.0" encoding="UTF-8"?><collection xmlns="http://www.loc.gov/MARC21/slim"><record><leader>00000nam a22000008c 4500</leader><controlfield tag="001">BV042507647</controlfield><controlfield tag="003">DE-604</controlfield><controlfield tag="005">20170718</controlfield><controlfield tag="007">t</controlfield><controlfield tag="008">150416s2015 xxuad|| |||| 00||| eng d</controlfield><datafield tag="010" ind1=" " ind2=" "><subfield code="a">2016304909</subfield></datafield><datafield tag="015" ind1=" " ind2=" "><subfield code="a">15,N03</subfield><subfield code="2">dnb</subfield></datafield><datafield tag="016" ind1="7" ind2=" "><subfield code="a">1064277519</subfield><subfield code="2">DE-101</subfield></datafield><datafield tag="020" ind1=" " ind2=" "><subfield code="a">9781491905012</subfield><subfield code="9">978-1-491-90501-2</subfield></datafield><datafield tag="020" ind1=" " ind2=" "><subfield code="a">1491905018</subfield><subfield code="9">1-4919-0501-8</subfield></datafield><datafield tag="024" ind1="3" ind2=" "><subfield code="a">9781491905012</subfield></datafield><datafield tag="035" ind1=" " ind2=" "><subfield code="a">(OCoLC)908336708</subfield></datafield><datafield tag="035" ind1=" " ind2=" "><subfield code="a">(DE-599)DNB1064277519</subfield></datafield><datafield tag="040" ind1=" " ind2=" "><subfield code="a">DE-604</subfield><subfield code="b">ger</subfield><subfield code="e">rakddb</subfield></datafield><datafield tag="041" ind1="0" ind2=" "><subfield code="a">eng</subfield></datafield><datafield tag="044" ind1=" " ind2=" "><subfield code="a">xxu</subfield><subfield code="c">XD-US</subfield></datafield><datafield tag="049" ind1=" " ind2=" "><subfield code="a">DE-1050</subfield><subfield code="a">DE-11</subfield><subfield code="a">DE-1043</subfield><subfield code="a">DE-Aug4</subfield><subfield code="a">DE-M100</subfield><subfield code="a">DE-860</subfield><subfield code="a">DE-83</subfield></datafield><datafield tag="050" ind1=" " ind2="0"><subfield code="a">QA76.73.P224</subfield></datafield><datafield tag="050" ind1=" " ind2="0"><subfield code="a">QA76.73.P224 L63 2015</subfield></datafield><datafield tag="082" ind1="0" ind2=" "><subfield code="a">004</subfield></datafield><datafield tag="082" ind1="0" ind2=" "><subfield code="a">005.2/762</subfield></datafield><datafield tag="082" ind1="0" ind2=" "><subfield code="a">005.133</subfield><subfield code="2">22/ger</subfield></datafield><datafield tag="084" ind1=" " ind2=" "><subfield code="a">ST 250</subfield><subfield code="0">(DE-625)143626:</subfield><subfield code="2">rvk</subfield></datafield><datafield tag="084" ind1=" " ind2=" "><subfield code="a">004</subfield><subfield code="2">sdnb</subfield></datafield><datafield tag="100" ind1="1" ind2=" "><subfield code="a">Lockhart, Josh</subfield><subfield code="e">Verfasser</subfield><subfield code="0">(DE-588)1069518158</subfield><subfield code="4">aut</subfield></datafield><datafield tag="245" ind1="1" ind2="0"><subfield code="a">Modern PHP</subfield><subfield code="b">new features and good practices</subfield><subfield code="c">Josh Lockhart</subfield></datafield><datafield tag="250" ind1=" " ind2=" "><subfield code="a">1. ed.</subfield></datafield><datafield tag="264" ind1=" " ind2="1"><subfield code="a">Beijing [u.a.]</subfield><subfield code="b">O'Reilly</subfield><subfield code="c">2015</subfield></datafield><datafield tag="300" ind1=" " ind2=" "><subfield code="a">XVII, 246 S.</subfield><subfield code="b">Ill., graph. Darst.</subfield></datafield><datafield tag="336" ind1=" " ind2=" "><subfield code="b">txt</subfield><subfield code="2">rdacontent</subfield></datafield><datafield tag="337" ind1=" " ind2=" "><subfield code="b">n</subfield><subfield code="2">rdamedia</subfield></datafield><datafield tag="338" ind1=" " ind2=" "><subfield code="b">nc</subfield><subfield code="2">rdacarrier</subfield></datafield><datafield tag="520" ind1=" " ind2=" "><subfield code="a">Contents: Language features. The new PHP -- Features -- Good practices. Standards -- Components -- Good practices -- Deployment, testing, and tuning. Hosting -- Provisioning -- Tuning -- Deployment -- Testing -- Profiling -- HHVM and Hack -- Community -- A. Installing PHP -- Local development environments.</subfield></datafield><datafield tag="650" ind1=" " ind2="4"><subfield code="a">PHP (Computer program language)</subfield></datafield><datafield tag="650" ind1=" " ind2="4"><subfield code="a">Web sites--Design</subfield></datafield><datafield tag="650" ind1=" " ind2="4"><subfield code="a">Application software--Development</subfield></datafield><datafield tag="650" ind1="0" ind2="7"><subfield code="a">PHP</subfield><subfield code="0">(DE-588)4546126-0</subfield><subfield code="2">gnd</subfield><subfield code="9">rswk-swf</subfield></datafield><datafield tag="650" ind1="0" ind2="7"><subfield code="a">API</subfield><subfield code="0">(DE-588)4430243-5</subfield><subfield code="2">gnd</subfield><subfield code="9">rswk-swf</subfield></datafield><datafield tag="689" ind1="0" ind2="0"><subfield code="a">PHP</subfield><subfield code="0">(DE-588)4546126-0</subfield><subfield code="D">s</subfield></datafield><datafield tag="689" ind1="0" ind2="1"><subfield code="a">API</subfield><subfield code="0">(DE-588)4430243-5</subfield><subfield code="D">s</subfield></datafield><datafield tag="689" ind1="0" ind2=" "><subfield code="5">DE-604</subfield></datafield><datafield tag="776" ind1="0" ind2="8"><subfield code="i">Erscheint auch als</subfield><subfield code="n">Online-Ausgabe</subfield><subfield code="z">978-1-491-90517-3</subfield></datafield><datafield tag="776" ind1="0" ind2="8"><subfield code="i">Erscheint auch als</subfield><subfield code="n">Online-Ausgabe</subfield><subfield code="z">978-1-491-90518-0</subfield></datafield><datafield tag="856" ind1="4" ind2="2"><subfield code="m">X:MVB</subfield><subfield code="q">text/html</subfield><subfield code="u">http://deposit.dnb.de/cgi-bin/dokserv?id=5119295&amp;prov=M&amp;dok_var=1&amp;dok_ext=htm</subfield><subfield code="3">Inhaltstext</subfield></datafield><datafield tag="856" ind1="4" ind2="2"><subfield code="m">HBZ Datenaustausch</subfield><subfield code="q">application/pdf</subfield><subfield code="u">http://bvbr.bib-bvb.de:8991/F?func=service&amp;doc_library=BVB01&amp;local_base=BVB01&amp;doc_number=027942232&amp;sequence=000002&amp;line_number=0001&amp;func_code=DB_RECORDS&amp;service_type=MEDIA</subfield><subfield code="3">Inhaltsverzeichnis</subfield></datafield><datafield tag="943" ind1="1" ind2=" "><subfield code="a">oai:aleph.bib-bvb.de:BVB01-027942232</subfield></datafield></record></collection>
id DE-604.BV042507647
illustrated Illustrated
indexdate 2024-08-03T02:19:10Z
institution BVB
isbn 9781491905012
1491905018
language English
lccn 2016304909
oai_aleph_id oai:aleph.bib-bvb.de:BVB01-027942232
oclc_num 908336708
open_access_boolean
owner DE-1050
DE-11
DE-1043
DE-Aug4
DE-M100
DE-860
DE-83
owner_facet DE-1050
DE-11
DE-1043
DE-Aug4
DE-M100
DE-860
DE-83
physical XVII, 246 S. Ill., graph. Darst.
publishDate 2015
publishDateSearch 2015
publishDateSort 2015
publisher O'Reilly
record_format marc
spelling Lockhart, Josh Verfasser (DE-588)1069518158 aut
Modern PHP new features and good practices Josh Lockhart
1. ed.
Beijing [u.a.] O'Reilly 2015
XVII, 246 S. Ill., graph. Darst.
txt rdacontent
n rdamedia
nc rdacarrier
Contents: Language features. The new PHP -- Features -- Good practices. Standards -- Components -- Good practices -- Deployment, testing, and tuning. Hosting -- Provisioning -- Tuning -- Deployment -- Testing -- Profiling -- HHVM and Hack -- Community -- A. Installing PHP -- Local development environments.
PHP (Computer program language)
Web sites--Design
Application software--Development
PHP (DE-588)4546126-0 gnd rswk-swf
API (DE-588)4430243-5 gnd rswk-swf
PHP (DE-588)4546126-0 s
API (DE-588)4430243-5 s
DE-604
Erscheint auch als Online-Ausgabe 978-1-491-90517-3
Erscheint auch als Online-Ausgabe 978-1-491-90518-0
X:MVB text/html http://deposit.dnb.de/cgi-bin/dokserv?id=5119295&prov=M&dok_var=1&dok_ext=htm Inhaltstext
HBZ Datenaustausch application/pdf http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=027942232&sequence=000002&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA Inhaltsverzeichnis
spellingShingle Lockhart, Josh
Modern PHP new features and good practices
PHP (Computer program language)
Web sites--Design
Application software--Development
PHP (DE-588)4546126-0 gnd
API (DE-588)4430243-5 gnd
subject_GND (DE-588)4546126-0
(DE-588)4430243-5
title Modern PHP new features and good practices
title_auth Modern PHP new features and good practices
title_exact_search Modern PHP new features and good practices
title_full Modern PHP new features and good practices Josh Lockhart
title_fullStr Modern PHP new features and good practices Josh Lockhart
title_full_unstemmed Modern PHP new features and good practices Josh Lockhart
title_short Modern PHP
title_sort modern php new features and good practices
title_sub new features and good practices
topic PHP (Computer program language)
Web sites--Design
Application software--Development
PHP (DE-588)4546126-0 gnd
API (DE-588)4430243-5 gnd
topic_facet PHP (Computer program language)
Web sites--Design
Application software--Development
PHP
API
url http://deposit.dnb.de/cgi-bin/dokserv?id=5119295&prov=M&dok_var=1&dok_ext=htm
http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=027942232&sequence=000002&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA
work_keys_str_mv AT lockhartjosh modernphpnewfeaturesandgoodpractices