Start
In this tutorial you will learn about the most common aspects of the framework:
register new
Provider
in your App and declare all featurescreate routes for
GET
,POST
andDELETE
requestsimplement
Controller
actions for all routesconfigure database connection
create new database migration using
Migration
extend
Entity
andRecord
classes for ORMimplement
Resolver
for resolving objects based on request parameterscreate
Form
for request validationcreate
Middleware
andAfterware
as before- and after- request handlerslearn about
Event
andHandler
create your first console
Command
andJob
for cronjob
Prerequisites:
create your project
composer create-project pckg-skeleton
,optionally install your frontend dependencies -
pnpm i
,initialize the project -
console project:init
bootstrap your app -
console app:create
Directory/File organization
Notes:
App
Foo
registersYourVendor\Foo\Provider\MyBaseProvider
Provider
MyBaseProvider
registers:routes from
MyController
optionally validated byCreateDummy
request/form and resolved byDummy
record resolver,console command
PrintDatetime
LogResolved
middleware,LogResponseLength
afterware andLogInserting
event handler
Records and entities are auto-wired or resolved by the framework
App and Provider
Create new provider and register it in your base app class.
Routing
Register a new route in your provider:
Controller and Action
Create a controller and action:
Last updated
Was this helpful?