Skip to content

Code archive for the book PHP: Novice to Ninja, 6th Edition

Notifications You must be signed in to change notification settings

wizardbear/hanbit-phpmysql

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 

Repository files navigation

PHP & MySQL 닌자 비법서

이 저장소는?

이 곳은 『PHP & MySQL 닌자 비법서』(한빛미디어, 2019)의 예제 코드 저장소입니다. 원서 『PHP & MySQL: Novice to Ninja, 6th Edition』(Sitepoint, 2017)의 예제 코드는 여기에 있습니다.

사용법

  • 현재 브랜치 : master
  • 각 브랜치의 소스 코드를 보려면 상단 'Branch' 버튼을 눌러 선택하거나 아래 표에서 찾아 클릭하세요.

이 책의 예제 코드는 간단한 코드에서 시작해 프레임워크로 완성됩니다. 코드가 발전하는 모든 과정은 브랜치 단위로 저장되어 있습니다.

코드는 Vagrant 및 Homestead Improved 가상 머신 환경을 기준으로 작성됐으며 브랜치 전환 및 저장을 간편하게 수행하는 웹 UI가 내장됩니다.

가상 머신 환경에서 예제를 실행하려면 Homestead Improved 설치 소스를 내려받은 경로로 들어가 Project 디렉터리가 비었는지 확인한 뒤 다음 명령어를 실행합니다.

git clone https://github.com/wizardbear/hanbit-phpmysql.git Project

가상 머신을 실행하고 http://192.0.10.10/samples 에 접속하면 모든 브랜치 목록이 보이며 원하는 브랜치로 전환할 수 있습니다. 더 자세한 내용은 책 본문을 참고하시기 바랍니다.

Chapter 1 환경 설정

브랜치 예제 번호
Introduction-1

Chapter 2 PHP 기본

브랜치 예제 번호
PHP-RandomNumber 2-1
PHP-Echo 2-2
PHP-DiceRoll 2-3
PHP-DiceRoll-Formatted 2-4
PHP-DiceRoll-Else 2-5
PHP-DiceRoll-Or 2-6
PHP-DiceRoll-Greater 2-7
PHP-DiceRoll-TwoDice 2-8
PHP-For 2-9
PHP-DiceRoll-ManyDice 2-10
PHP-WhileCount 2-11
PHP-DiceRoll-While 2-12
PHP-DiceRoll-DoWhile 2-13
PHP-DiceRoll-Korean-If 2-14
PHP-DiceRoll-Korean-Array 2-15
PHP-DiceRoll-Korean-If-TwoDice 2-16
PHP-DiceRoll-Korean-Array-TwoDice 2-17
PHP-GET 2-18
PHP-GET-Sanitized 2-19
PHP-GET-TwoVars 2-20
PHP-GET-Form 2-21
PHP-POST-Form 2-22
PHP-Count-Template 2-23
PHP-Count-Template-DIR
PHP-Count-Template-Secured 2-24
PHP-Form-Controller 2-25

Chapter 4 MySQL 데이터와 웹 출력

브랜치 예제 번호
MySQL-Connect
MySQL-Connect-Complete 4-1
MySQL-Connect-Error
MySQL-Create 4-2
MySQL-Update 4-3
MySQL-ListJokes 4-4
MySQL-ListJokes-Shorthand 4-5
MySQL-ListJokes-Layout-1 4-6
MySQL-ListJokes-Layout-2
MySQL-ListJokes-Layout-3 4-7
MySQL-AddJoke 4-8
MySQL-DeleteJoke

Chapter 5 관계형 데이터베이스 디자인

브랜치 예제 번호
DBDesign-JokeAuthor

Chapter 6 구조적 프로그래밍

브랜치 예제 번호
Structure-DatabaseConnection
Structure-Include 6-1
Structure-TotalJokes 6-2
Structure-TotalJokesList 6-3
Structure-AddJoke 6-4
Structure-AddJoke2
Structure-EditJoke
Structure-DeleteJoke
Structure-AllJokes 6-5

Chapter 7 함수 고도화

브랜치 예제 번호
Structure2-ArrayFunctions
Structure2-ArrayFunctions-Error
Structure2-ArrayFunctions-Dates
Structure2-ArrayFunctions-Dates2
Structure2-GenericFunctions
Structure2-GenericFunctions-Save
Structure2-GenericFunctions-SaveArray 7-1

Chapter 8 객체와 클래스

브랜치 예제 번호
OOP-DatabaseTable
OOP-DatabaseTable2
OOP-EntryPoint
OOP-EntryPoint2
OOP-EntryPoint3
OOP-EntryPoint-Template 8-1

Chapter 9 프레임워크 구축

브랜치 예제 번호
CMS-Redirect 9-1
CMS-Controller 9-2
CMS-Controller-Rewrite
CMS-EntryPoint-Class 9-3
CMS-EntryPoint-Framework
CMS-EntryPoint-Autoload
CMS-EntryPoint-Namespaces 9-4
CMS-EntryPoint-Namespaces-Router
CMS-EntryPoint-Interface

Chapter 10 사용자 계정

브랜치 예제 번호
Registration-Form
Registration-Validation
Registration-Validation-Email
Registration-Validation-Email2 10-1
Registration-Validation-Hash

Chapter 11 쿠키, 세션, 접근 제어

브랜치 예제 번호
Sessions-Cookie 11-1
Sessions-Count 11-2
Sessions-LoginCheck 11-3
Sessions-LoginError 11-4
Sessions-LoginForm
Sessions-Logout
Sessions-AuthorId
Sessions-CheckUser
Sessions-CheckUser-Secured

Chapter 13 관계

브랜치 예제 번호
Relationships-Author
Relationships-DatabaseTableEntity
Relationships-Objects
Relationships-JokeObject 13-1
Relationships-EditJoke 13-2
Relationships-Cached
Relationships-AddCategory
Relationships-Categories
Relationships-AddCategory2 13-3
Relationships-AddCategory-Save 13-4
Relationships-ListCategories
Relationships-DeleteCategory
Relationships-JokeCategory
Relationships-AssignCategory
Relationships-CategoryList
Relationships-CategoryList2
Relationships-ChangeCategories
Relationships-PermissionsCheck
Relationships-EditPermissions
Relationships-BinaryPermissions 13-5
Relationships-Complete

Chapter 14 콘텐츠 서식과 정규표현식

브랜치 예제 번호
Formatting-Markdown
Formatting-Usort
Formatting-Limit
Formatting-Pagination

최종 프레임워크

About

Code archive for the book PHP: Novice to Ninja, 6th Edition

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%