2017 © Pedro PelΓ‘ez
 

project psf

php simple framework

image

jonathanbak/psf

php simple framework

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 14 % Grown

The README.md

README

What is PSF?

PSFλŠ” PHP Simple Framework 둜 κ°„λ‹¨ν•œ 파일(configure.json) μ„€μ • 만으둜 닀쀑 μ‚¬μ΄νŠΈλ₯Ό μš΄μ˜ν• μˆ˜ 있게 λ„μ™€μ£ΌλŠ” ν”„λ ˆμž„μ›Œν¬ μž…λ‹ˆλ‹€., (*1)

Features

PSF supports the following:, (*2)

  • *PHP 5.3 μ΄μƒμ—μ„œ μ‚¬μš© κ°€λŠ₯ν•©λ‹ˆλ‹€.

Requirements

requires the following:, (*3)

  • PHP 5.3 or higher
  • Composer - Dependency Management for PHP
  • mysqlilib, https://github.com/jonathanbak/mysqlilib

Note: php composer λ₯Ό μ„€μΉ˜ν•˜κ³  PSFλ₯Ό μΆ”κ°€ν•˜λ©΄ μžλ™μœΌλ‘œ μ˜μ‘΄μ„± λΌμ΄λΈŒλŸ¬λ¦¬λ“€μ„ μ„€μΉ˜ν•©λ‹ˆλ‹€., (*4)

Installation

  1. Download and install Composer by following the official instructions.
  2. Create a composer.json defining your dependencies. Note that this example is a short version for applications that are not meant to be published as packages themselves. To create libraries/packages please read the documentation., (*5)

    json { "require": { "jonathanbak/psf":"~1.1" } }, (*6)

  3. Run Composer: php composer.phar install, (*7)

Start First Project

ν„°λ―Έλ„μ—μ„œ μ•„λž˜ 슀크립트λ₯Ό μ‹€ν–‰ν›„ 데이터λ₯Ό μž…λ ₯ν•˜μ‹œλ©΄ μžλ™μœΌλ‘œ 폴더가 κ΅¬μ„±λ©λ‹ˆλ‹€., (*8)

$ php ./vendor/jonathanbak/psf/bin/init.php 
Create database configuration file [N/y]?y
Input db file name (domain name) : sample.com
Input db host : 127.0.0.1
Input db user : test
Input db password : testpassword
Input database name : db_test 
Input db alias name : dbalias
Create new db..
.../config/db/sec.wendybook.loc.json

Create site configuration file [N/y]?y
Input site namespace : SampleSite
Input site domain : www.sample.com
Input db file name : sample.com
Create new site..
OK.

Folder Structure

PSF μ‚¬μš©μ‹œ μΆ”μ²œν•˜λŠ” 폴더 κ΅¬μ‘°λŠ” μ•„λž˜μ™€ κ°™μŠ΅λ‹ˆλ‹€., (*9)

.
β”œβ”€β”€ app
β”‚   └── com.example         # example.com μ‚¬μ΄νŠΈ 루트 폴더
β”‚       β”œβ”€β”€ _tmp            # μž„μ‹œν΄λ”, μΊμ‰¬νŒŒμΌκ³Ό 둜그 생성
β”‚       β”œβ”€β”€ controllers     # URLμ—μ„œ μ ‘κ·Όν•˜λŠ” controller 파일
β”‚       β”œβ”€β”€ models          # λͺ¨λΈ 파일, μ£Όμš” 둜직
β”‚       └── views           # View 폴더
β”‚           β”œβ”€β”€ css             # css 파일
β”‚           β”œβ”€β”€ image           # images 파일
β”‚           β”œβ”€β”€ js              # javascript 파일
β”‚           └── tpl             # tpl 파일 (html 파일)
β”œβ”€β”€ config              # μ„€μ • 파일
β”‚   β”œβ”€β”€ db              # DB 정보 μ„€μ • 파일
β”‚   └── site            # μ‚¬μ΄νŠΈ μ„€μ • 파일
β”œβ”€β”€ html                # μ‹€μ œ μ›Ήμ„œλ²„μ˜ DOCUMENT_ROOT
└── vendor              # Composer 라이브러리 폴더

app 폴더 ν•˜μœ„ κ΅¬μ‘°λŠ” config/site/usersiteurl.json νŒŒμΌμ•ˆμ—μ„œ 별도 μ •μ˜κ°€ κ°€λŠ₯ν•©λ‹ˆλ‹€., (*10)

app 폴더 μƒμœ„ κ΅¬μ‘°λŠ” configure.json 파일 μ—μ„œ 별도 μ •μ˜κ°€ κ°€λŠ₯ν•©λ‹ˆλ‹€., (*11)

The Versions

23/05 2018

dev-master

9999999-dev

php simple framework

  Sources   Download

MIT

The Requires

 

The Development Requires

23/05 2018

v1.0.12

1.0.12.0

php simple framework

  Sources   Download

MIT

The Requires

 

The Development Requires

21/05 2018

v1.0.11

1.0.11.0

php simple framework

  Sources   Download

MIT

The Requires

 

The Development Requires

18/05 2018

v1.0.10

1.0.10.0

php simple framework

  Sources   Download

MIT

The Requires

 

The Development Requires

18/05 2018

v1.0.9

1.0.9.0

php simple framework

  Sources   Download

MIT

The Requires

 

The Development Requires

18/05 2018

v1.0.8

1.0.8.0

php simple framework

  Sources   Download

MIT

The Requires

 

The Development Requires

15/05 2018

v1.0

1.0.0.0

php simple framework

  Sources   Download

MIT

The Requires

 

The Development Requires