Leanpub Header

Skip to main content

클린 아키텍처 인 PHP

유연하고 유지보수하기 좋은 중대형 애플리케이션을 만드는 방법

This book is a translation into Korean of The Clean Architecture in PHP which was originally written in English

Minimum price

$24.00

$30.00

You pay

$30.00

Authors earn

$24.00
$

...Or Buy With Credits!

You can get credits monthly with a Reader Membership
PDF
EPUB
WEB
262
Pages
37,263Words
About

About

About the Book

처음엔 개발 속도도 빠르고 잘 진행되는 것 같았는데, 언젠가부터 진도가 안나간다. 아주 간단한 기능 하나 추가하는데도 하세월이 걸린다. 건드리지도 않았는데 전혀 관련없는 코드에서 버그가 난다. 테스트를 작성할 시간 같은건 애초에 존재하지도 않았다. 어쨋든 지금은 다 깨져서 옴짝달싹 못하게 되버렸다.

이쯤되면 즐거웠던 프로그래밍이 재미없는 일이 되버린다.

애플리케이션의 구조를 잘 잡는게 중요하다. 방향을 잘못잡으면 나중에 악몽에 시달리게되고, 새로운 요구사항에 맞게 애플리케이션을 리팩토링하기가 거의 불가능해진다. 비록 이 책에서 소개하는 방법이 애플리케이션을 개발하는 유일무이한 방법은 아니지만 다음과 같은 특징을 갖도록 개발할 수 있게 도와줄 것이다.

  • 테스트 가능한
  • 리팩토링 가능한
  • 작업하기 쉬운
  • 유지보수하기 쉬운

이 책은 엉클 밥이 제시한 클린 아키텍처가 무엇인지, PHP에선 이를 어떻게 구현할 수 있는지 소개한다. 뿐만 아니라 SOLID의 개념, 다양한 디자인 패턴과 아키텍처도 함께 설명한다.

Share this book

Categories

This book is a translation into Korean of The Clean Architecture in PHP which was originally written in English

Author

About the Authors

크리스토퍼 윌슨

Kristopher has been developing business grade PHP applications for over 10 years. He is active in the PHP community as a founder of the Grand Rapids PHP Developers group (GrPhpDev), and is committed to fostering and increasing knowledge and skillset of the local community. 

He lives in Grand Rapids, Michigan with his wife, Ashley, their daughter, Elliana, and their collection of four cats.

Connect with him on Twitter or checkout his work on GitHub.

이현석

PHP를 주로 사용하는 개발자이고 개발 관련 책과 글도 씁니다. 매일 라라벨 관련 글을 한 편씩 보내주는 1일 1식 라라벨 프로젝트를 진행하고 있습니다. 출간한 책으로는 “바쁜 팀장님 대신 알려주는 신입 PHP 개발자 안내서“가 있습니다. 대외활동으로는 모던 PHP 유저 그룹에서 꾸준히 활동 중이고, 코딩 야학에도 조력자로 참여하고 있습니다. 라라벨 관련해서는 XE 기술 세미나와 XECON에서 발표한 바 있고, 패스트캠퍼스에서 강의한 바 있습니다.

Contents

Table of Contents

소개

  1. 구성
  2. 저자
  3. 코딩 스타일에 대해
  4. 코드가 갖는 문제

좋은 코드 작성하기는 어렵다

  1. 나쁜 코드 쓰기는 쉽다
  2. 어떤 것도 테스트 할 수 없다
  3. 바꾸면 다 망가진다
  4. 프레임워크에 살고 프레임워크에 죽는다
  5. 모든 라이브러리를 사용하고 싶다
  6. 좋은 코드 쓰기

아키텍처란 무엇인가?

  1. 아키텍처는 어떻게 생겼는가?
  2. 소프트웨어 레이어
  3. 나쁜 아키텍처의 사례
  4. 나쁜 아키텍처의 비용

우리의 적 커플링

  1. 스파게티 커플링
  2. 왜 커플링이 적인가?
  3. 어떻게 하면 커플링을 줄일 수 있을까?
  4. 디커플링 툴박스

디자인 패턴 기초

  1. 팩토리 패턴 (The Factory Patterns)
  2. 추상 팩토리는 팩토리 메서드를 사용한다
  3. 리포지토리 패턴
  4. 어댑터 패턴
  5. 전략 패턴
  6. 최적화 기회
  7. 디자인 패턴 더 배우기

SOLID 디자인 원칙

  1. 단일 책임 원칙
  2. 개방/폐쇄 원칙
  3. 리스코프 치환 원칙
  4. 인터페이스 분리 원칙
  5. 의존성 역전 원칙
  6. SOLID 원칙 적용

의존성 주입

  1. 제어의 역전
  2. 의존성 주입은 언제 쓰는가
  3. 많은 의존성 다루기
  4. 우리는 여전히 커플링 되어 있는가?

인터페이스로 계약 작성하기

  1. PHP에서의 인터페이스
  2. 인터페이스를 타입 힌트로 사용하기
  3. 리스코프 치환 원칙
  4. 인터페이스를 계약으로 사용하기
  5. 제삼자 코드를 계약을 따르게 만들기

어댑터로 추상화하기

  1. 어댑터 세팅하기
  2. 이게 어떻게 도움이 되는가?
  3. 클린 아키텍처

MVC, 그리고 MVC의 한계

  1. 다이어그램으로 보는 MVC
  2. MVC 구성요소
  3. 라우팅
  4. MVC만으론 충분하지 않다
  5. 비만 모델
  6. 모든 것을 위한 더 많은 레이어!

클린 아키텍처

  1. 클린 아키텍처
  2. 양파 아키텍처

프레임워크 독립성

  1. 프레임워크의 문제
  2. 프레임워크 독립성
  3. 손이 많이 간다

데이터베이스 독립성

  1. 도메인 모델
  2. 도메인 서비스
  3. 데이터베이스 인프라스트럭쳐 / 영속성
  4. 코드 조직화하기
  5. 요약

외부 기관 독립성

  1. 인터페이스, 어댑터, 의존성 주입 사용하기
  2. 이득
  3. 클린 아키텍처 사례 연구

과금 시스템

  1. 애플리케이션 워크플로우
  2. 사전준비

도메인 구축하기

  1. 프로젝트 세팅하기
  2. 엔티티 만들기
  3. 도메인 서비스
  4. 요약

젠드 프레임워크 2 준비

  1. 컴포저로 설치하기
  2. 스켈레톤 지우기
  3. 데이터베이스 세팅하기
  4. 테이블 게이트웨이 팩토리
  5. 요약

젠드 프레임워크 2로 애플리케이션 만들기

  1. 고객 관리
  2. 주문 관리
  3. 송장 관리

독트린 2

  1. 영속성 레이어 재구축하기
  2. 독트린 기반 레파지토리 만들기
  3. 엔티티 맵핑
  4. Doctrine과 젠드 프레임워크 통합하기
  5. 새 레파지토리 주입하기
  6. 수화기 업데이트
  7. 요약

라라벨로 전환하기

  1. 라라벨 세팅하기
  2. 독트린 설정하기
  3. 대시보드 세팅
  4. 고객 관리
  5. 주문 관리
  6. 송장 관리
  7. 다음 단계
  8. 요약

Get the free sample chapters

Click the buttons to get the free sample in PDF or EPUB, or read the sample online here

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.

You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!

So, there's no reason not to click the Add to Cart button, is there?

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earned over $14 million writing, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub