dev-master
9999999-devphp simple framework
MIT
The Requires
The Development Requires
by Jonathan Bak
php simple framework
PSFλ PHP Simple Framework λ‘ κ°λ¨ν νμΌ(configure.json) μ€μ λ§μΌλ‘ λ€μ€ μ¬μ΄νΈλ₯Ό μ΄μν μ μκ² λμμ£Όλ νλ μμν¬ μ λλ€., (*1)
PSF supports the following:, (*2)
requires the following:, (*3)
Note: php composer λ₯Ό μ€μΉνκ³ PSFλ₯Ό μΆκ°νλ©΄ μλμΌλ‘ μμ‘΄μ± λΌμ΄λΈλ¬λ¦¬λ€μ μ€μΉν©λλ€., (*4)
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)
Run Composer: php composer.phar install
, (*7)
ν°λ―Έλμμ μλ μ€ν¬λ¦½νΈλ₯Ό μ€νν λ°μ΄ν°λ₯Ό μ λ ₯νμλ©΄ μλμΌλ‘ ν΄λκ° κ΅¬μ±λ©λλ€., (*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.
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)
php simple framework
MIT