ibis

PHP 언어로 만든 PDF 관련 프로젝트예요. 전 세계 개발자 2,008 명이 스타(좋아요)를 눌렀어요. 깃허브에 올라온 설치파일이 없는 개발자용 프로젝트예요. 마지막 수정은 1년 전이에요.

👩‍💻 개발자용⭐ 2,008 PDF

원문 소개: A PHP tool that helps you write eBooks in markdown and convert to PDF.

바로 쓰기

내 상황에 맞는 방법을 하나 고르세요.

브라우저에서 바로 열기 · 설치 없음

내 것으로 가져오기

git clone https://github.com/themsaid/ibis.git

git clone: 개발자가 코드를 받는 명령어예요. 수정 내역까지 함께 받아져요.

한눈에 보기

인기⭐ 2,008 스타 · 🍴 158 포크
무료 여부MIT
무료이고 회사·상업용으로 써도 돼요. 출처(저작권 표시)만 남기면 돼요.
만든 언어PHP
최신 버전v0.1.4 · 2020년 12월 23일
활동만든 날 2020.6.11 · 최근 수정 1년 전 · 열린 이슈(질문) 22개

설명서 (README)

만든 사람이 쓴 원문 설명서예요. 영어가 어렵다면 한국어로 번역해서 보기 →

Ibis logo

Artwork by Eric L. Barnes and Caneco from Laravel News ❤️.


This PHP tool helps you write eBooks in markdown. Run ibis build and an eBook will be generated with:

  1. A cover photo.
  2. Clickable auto-generated table of contents.
  3. Code syntax highlighting.
  4. Available in 2 themes. Light and dark.

Ibis was used to create Laravel Queues in Action, an eBook I published in August 2020. Click here for the sample.

Installation

Make sure you have PHP7.3 or above installed on your system and that your gd extension is enabled in your php.ini file.

First, install the composer package globally:

composer global require themsaid/ibis

Then, run this command inside an empty directory:

ibis init

This will create the following files and directories:

  • /assets
  • /assets/fonts
  • /assets/cover.jpg
  • /assets/theme-light.html
  • /assets/theme-dark.html
  • /content
  • /ibis.php

You may configure your book by editing the /ibis.php configuration file.

Writing Your eBook

The init command will create sample .md files inside the content folder. You can explore those files to see how you can write your book. This sample content is taken from Laravel Queues in Action.

Inside the content directory, you can write multiple .md files. Ibis uses the headings to divide the book into parts and chapters:

# Part 1

<h1> tags define the start of a part. A separate PDF page will be generated to print the part title and any content below.

## Chapter 1

<h2> tags define the start of a chapter. A chapter starts on a new page always.

### Starting with Ibis

<h3> tags define different titles inside a chapter.

Adding different quotes

Three different types of quotes can be added: quote, warning, and notice.

>{quote} This is a quote.

>{warning} This is a warning.

>{notice} This is a notice.

Using images

Images can be stored in the content folder and then brought in like this:

![Screenshot 1](content/screenshot-1.png)

Adding a cover image

To use a cover image, add a cover.jpg in the assets/ directory (or a cover.html file if you'd prefer a HTML-based cover page). If you don't want a cover image, delete these files.

Using Fonts

Edit your /ibis.php configuration files to define the font files to be loaded from the /assets/fonts directory. After that you may use the defined fonts in your themes (/assets/theme-light.html & /assets/theme-dark.html).

Generating PDF eBook

ibis build

Ibis will parse the files in alphabetical order and store the PDF file in /export.

The default is to generate the PDF using the light theme, to generate a PDF using the dark theme:

ibis build dark

Generating A Sample

ibis sample

ibis sample dark

This command will use the generated files from the ibis build command to generate samples from your PDF eBook. You can configure which pages to include in the sample by updating the /ibis.php file.

Development

This project uses PHP CS Fixer with a code standard defined in .php_cs.

To review code out of style, you can run the fix command as a dry run. Run the composer script like this:

composer run csfix-review

To fix the source code, run the following composer script:

composer run csfix

Credits

License

The MIT License (MIT). Please see License File for more information.

자주 묻는 질문

ibis 무료로 쓸 수 있나요?

네, MIT 라이선스로 공개된 오픈소스예요. 무료이고 회사·상업용으로 써도 돼요. 출처(저작권 표시)만 남기면 돼요. 깃허브 저장소에서 누구나 내려받을 수 있어요.

ibis 설치는 어떻게 하나요?

따로 설치파일이 없어서 README 설명서의 안내를 따라 설치해야 해요. ZIP 다운로드로 전체 코드를 받거나, 브라우저에서 바로 열어 코드를 둘러볼 수 있어요.

코딩을 몰라도 ibis 쓸 수 있나요?

조금 어려울 수 있어요. 완성된 설치파일이 없는 개발자용 프로젝트라서 터미널 명령어나 개발 환경이 필요해요. 처음이라면 Codespaces로 브라우저에서 먼저 실행해 보세요.

ibis 인기는 어느 정도인가요?

깃허브 스타 2,008개, 포크 158개를 받은 프로젝트예요. 2020년에 만들어졌고 마지막 수정은 1년 전이에요. 스타가 1만 개를 넘으면 전 세계적으로 검증된 인기 프로젝트로 봐요.

복사했어요