Muutke küpsiste eelistusi

PHP 8 Basics: For Programming and Web Development 1st ed. [Pehme köide]

  • Formaat: Paperback / softback, 329 pages, kõrgus x laius: 235x155 mm, kaal: 545 g, 75 Illustrations, black and white, 1 Paperback / softback
  • Ilmumisaeg: 28-Dec-2022
  • Kirjastus: APress
  • ISBN-10: 1484280814
  • ISBN-13: 9781484280812
Teised raamatud teemal:
  • Pehme köide
  • Hind: 34,97 €*
  • * hind on lõplik, st. muud allahindlused enam ei rakendu
  • Tavahind: 41,14 €
  • Säästad 15%
  • Raamatu kohalejõudmiseks kirjastusest kulub orienteeruvalt 3-4 nädalat
  • Kogus:
  • Lisa ostukorvi
  • Tasuta tarne
  • Tellimisaeg 2-4 nädalat
  • Lisa soovinimekirja
  • Formaat: Paperback / softback, 329 pages, kõrgus x laius: 235x155 mm, kaal: 545 g, 75 Illustrations, black and white, 1 Paperback / softback
  • Ilmumisaeg: 28-Dec-2022
  • Kirjastus: APress
  • ISBN-10: 1484280814
  • ISBN-13: 9781484280812
Teised raamatud teemal:
Take advantage of PHP 8's powerful features to create basic web applications, solve code tests (required for most job interviews nowadays), and begin moving towards more advanced PHP concepts. This book provides an introduction to PHP 8, including modules, attributes, JIT compiler, and union types, as well as related frameworks such as Symfony.

You will explore fundamental PHP concepts through both practical and hands-on examples. You'll not only gain a solid understanding of PHP fundamentals, but will also be prepared to handle new concepts and technologies as they emerge.

After working through the book and its associated demo code, you will be able to build your first basic web application.

What You Will Learn









Develop web applications with PHP 8 Use Vagrant, Docker, JSON API and more Work with data, form data, arrays, objections, exceptions, regex, and more Utilize PHP frameworks like Laravel and Symfony





Who This Book Is For





Those new to PHP 8 or PHP in general. Some prior experience in web development and DB handling is recommended.
About the Authors xiii
About the Contributor xv
Acknowledgments xix
Introduction xxi
Chapter 1 Getting Started
1(14)
Why Use PHP?
1(1)
Using PHP
2(1)
Why PHP, Ngnix, and MySQL?
3(1)
Installing Docker
4(6)
Windows
5(1)
Mac OS
6(1)
Linux
7(3)
Installing Docker-Compose
10(4)
The Development Environment
11(3)
Summary
14(1)
Chapter 2 PHP Fundamentals
15(18)
Variables
15(3)
Using Errors As Tools
18(4)
Objects
22(3)
Verbs: GET and POST
25(5)
Summary
30(3)
Chapter 3 Functions, Classes, and Traits
33(16)
OOP
34(4)
Reviewing Class Definitions
35(2)
Class Visibility
37(1)
A Closer Look at Class Inheritance
38(2)
Polymorphism and Abstract Classes
40(8)
Constants
42(1)
Constructs
43(1)
Traits
44(2)
Namespaces
46(2)
Summary
48(1)
Chapter 4 Data and Data Types
49(26)
PHP Data Types
49(1)
PHP Data Types: Scalar Types
50(1)
Boolean
51(1)
Integer
52(1)
Float
52(1)
String
53(7)
PHP String Functions
60(8)
Substr()
60(2)
Strlen()
62(1)
Str_Replaceo
62(1)
Trim()
63(1)
Strpos()
64(1)
Strtolower()
65(1)
Strtoupper()
66(1)
Is_String()
66(1)
Strstr()
67(1)
PHP Data Types: Compound Types
68(1)
Array
68(3)
Object
71(1)
PHP Data Types: Special Types
71(1)
NULL
71(1)
Resource
72(1)
Summary
72(3)
Chapter 5 Form Data
75(10)
PHP POST Form
76(4)
PHP GET Form
80(3)
Summary
83(2)
Chapter 6 Arrays
85(64)
PHP Indexed and Associative Arrays
85(6)
PHP Multidimensional Arrays
91(1)
PHP Array Functions
91(56)
Array_Change_Key_Case
93(1)
Array_Chunk
93(1)
Array_Column
94(1)
Array_Combine
95(1)
Array_Count_Values
95(1)
Array_Diff_Assoc
96(1)
Array_Diff_Key
96(1)
Array_Diff_Uassoc
97(1)
Array_Diff_Ukey
97(1)
Array_Diff
98(1)
Array_Fill_Keys
99(1)
Arrayjill
99(1)
Arrayjilter
100(1)
Arrayjlip
101(1)
Array_Intersect_Assoc
101(1)
Array_Intersect_Key
102(1)
Array_Intersect_Uassoc
102(1)
Array_Intersect_Ukey
103(1)
Arrayjntersect
104(1)
Arrayjsjist
104(1)
Array_Key_Exists
105(1)
Array_Key_First
105(1)
Array_Key_Last
106(1)
Array_Keys
106(1)
Array_Map
107(1)
Array_Merge_Recursive
108(1)
Array_Merge
108(1)
Array_Multisort
109(1)
Array_Pad
110(1)
Array_Pop
110(1)
Array_Product
111(1)
Array_Push
111(1)
Array_Rand
112(1)
Array_Reduce
113(1)
Array_Replace_Recursive
113(1)
Array_Replace
114(1)
Array_Reverse
115(1)
Array_Search
115(1)
Array_Shift
116(1)
Array_Slice
117(1)
Array_Splice
118(2)
Array_Sum
120(1)
Array_Udiff_Assoc
120(1)
Array_Udiff_Uassoc
121(1)
Array_Udiff
122(1)
Array_Uintersect_Assoc
123(1)
Array_Uintersect_Uassoc
123(1)
Array_Uintersect
124(1)
Array_Unique
125(1)
Array_Unshift
126(1)
Array_Values
126(1)
Array_Walk_Recursive
127(1)
Array_Walk
127(1)
Array
128(1)
Arsort
129(1)
Assort
130(1)
Compact
131(1)
Count
131(1)
Current
132(1)
Each
133(1)
End
134(1)
Extract
134(2)
In_Array
136(1)
Key_Exists
137(1)
Key
137(1)
Krsort
137(1)
Ksort
138(1)
List
139(1)
Natcasesort
139(1)
Natsort
140(1)
Next
140(1)
Prev
141(1)
Range
142(1)
Reset
142(1)
Rsort
143(1)
Shuffle
144(1)
Sizeof
144(1)
Sort
144(1)
Uasort
145(1)
Uksort
146(1)
Usort
146(1)
Summary
147(2)
Chapter 7 Sessions and Cookies
149(16)
PHP Sessions
149(11)
PHP Cookies
160(3)
Summary
163(2)
Chapter 8 Objects
165(6)
Output
167(2)
Summary
169(2)
Chapter 9 PHP Exceptions, Validation, and Regular Expressions
171(22)
PHP Exceptions
172(5)
PHP Form Validation
177(7)
PHP Regular Expressions
184(7)
Regular Expressions Modifiers
185(1)
Regular Expression Metacharacters
185(1)
Regular Expression Square Brackets
186(1)
Regular Expression Quantifiers
187(1)
Regular Expression Functions
187(4)
Summary
191(2)
Chapter 10 PHP and MySQL Working Together
193(18)
PHP Communication with MySQL
194(4)
PHP Communication with the MySQLi Method
194(3)
PHP Communication with the PDO Method
197(1)
MySQLi Advantages
198(1)
PDO Advantages
198(1)
PHP Connection to a Database
199(10)
Summary
209(2)
Chapter 11 Data
211(10)
Planning for a New Database
211(3)
Creation of a New Database
214(5)
Summary
219(2)
Chapter 12 Website with a DB
221(10)
Summary
229(2)
Chapter 13 Introduction to Frameworks
231(16)
Introduction to Frameworks
231(1)
Pros and Cons of Frameworks
232(3)
Pros of Using Frameworks
232(2)
Cons of Using Frameworks
234(1)
MVC Pattern
235(1)
Different Layers of a Framework
236(1)
Different Types of Frameworks
237(2)
Role of Composer
238(1)
Introduction of PHP Standard Recommendation (PSR)
239(2)
PHP Frameworks
241(4)
Choosing a Framework
242(3)
Summary
245(2)
Chapter 14 Introduction to Laravel
247(26)
Introduction to Laravel
248(1)
Installing Laravel
248(2)
Database Setup and Configuration
250(14)
Database Migrations
253(6)
Controller Route
259(5)
Registration View Form
264(7)
Storing User Data in a Database
267(4)
Summary
271(2)
Chapter 15 Introduction to Symfony
273(12)
Introduction to Symfony
273(6)
Installing Symfony
279(4)
Creating a Symfony Application
281(2)
Summary
283(2)
Chapter 16 A Basic Symfony Application
285(30)
Creating a New Symfony Project
285(3)
Database Setup and Configuration
288(12)
Controller Route
300(5)
Registration View Form
305(3)
Storing User Data in a Database
308(5)
Summary
313(2)
Index 315
Gunnard Engebreth began coding at the age of 11 through a Learning BASIC book given to him by his father. Technology was changing fast and Gunnard rode the wave from 1200 to 56k baud modems. Logging in to BBSs, Prodigy, Compuserve, Delphi and IRC he could see the world changing and he wanted to be a part of it. He soon got involved in the ansi/demo scene, making several application generators for many groups in the 90s. Visual Basic was the next language of choice allowing him to develop tools for online systems such as AOL. This introduced many aspects of development, security and UI while they were still in their infancy. Once the WWW arrived via Mindspring in Atlanta, Ga. Gunnard quickly joined in the race for the web. Learning HTML, PERL and Linux (Slackware at the time) he began to build his skill-set which lead to a full-time Sysadmin position at the age of 20 (2000) at Activegrams/Silverpop. Gunnard has moved around the IT industry from SAN/NAS storage at IBM tocustom Wordpress sites for marketing companies, but one thing has stayed the same, a passion for learning and problem solving. Gunnard also DJs Drum and Bass as Section31, Playing drums and baking bread. Satej Kumar Sahu works in the role of Senior Enterprise Architect at Honeywell. He is passionate about technology, people, and nature. He believes through technology and conscientious decision making, each of us has the power to make this world a better place. In his free time, he can be found reading books, playing basketball, and having fun with friends and family.