Download the PHP package fatkulnurk/microframework without Composer
On this page you can find all versions of the php package fatkulnurk/microframework. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package microframework
MICROFRAMEWORK
PHP Microframework
Baca dokumentasi selengkapnya [link belum ada].
Cara Install
gunakan composer, lalu jalankan perintah dibawah ini (pastikan sudah install composer)
`
Mendaftarkan Routing
Pendaftaran Routing
contoh pendaftaran routing beserta implementasinya, contoh dibawah ini untuk return berupa xml.
`
Routing Handler Berupa Callback
dibawah ini contoh routing dengan callback. `
Routing Dengan handler berupa class
dibawah ini contoh routing dengan handler berupa method dari suatu class. perlu di ingat, untuk pemanggilan adalah NamaClass::NamaMethod `
Buat class sebagai handlernya, contohnya dibawah ini. `
Response
method yang bisa digunakan untuk response sama dengan yang ada pada aturan PSR 7.
untuk method tambahan adalah sebagai berikut:
- withView()
- withJson()
- withXml()
- withRedirect()
- withDownload()
Request
semua sama seperti PSR 7. Gunakan seperti di framework lain.
Cek CodeStyle
Standard yang digunakan adalah PSR2, untuk menjalankan ketikan command berikut.
phpcs ./system --standard=psr2
DocBlock
Jalankan
u
Tool
- PHP_CodeSniffer (phpcs & phpcbf), cara integrasi dengan phpstorm --> https://www.jetbrains.com/help/phpstorm/using-php-code-sniffer.html
- styleci
- travis-ci
- Github - Repository kode
All versions of microframework with dependencies
twig/twig Version 3.*
pyrocms/lex Version 2.2.*
ext-json Version *
monolog/monolog Version ^2.0
psr/http-message Version ^1.0
myclabs/php-enum Version ^1.7
spatie/array-to-xml Version ^2.11
nyholm/psr7 Version ^1.2
zendframework/zend-httphandlerrunner Version ^1.1
salernolabs/php-to-xml Version ^1.0
filp/whoops Version ^2.5
adbario/php-dot-notation Version ^2.2