Skip to content

Obie is a simple PHP framework. It aims to provide basic services needed for any web app.

License

Notifications You must be signed in to change notification settings

alexrsagen/obie

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Obie

Obie is a simple PHP framework. It aims to provide basic services needed for any web app.

Usage

composer require alexrsagen/obie

Check out alexrsagen/obie-sample-app to see an example app built with Obie.

Migration guide from ZeroX

  • Upgrade to PHP >= 8.0.0
  • Replace all instances of "ZeroX" / "ZEROX" with "Obie" / "OBIE"
  • Replace Obie\Mime with Obie\Http\Mime
  • Replace Obie\Router with Obie\Http\Router [1]
  • Replace Obie\RouterInstance with Obie\Http\RouterInstance [1]
  • Replace Obie\Route with Obie\Http\Route [1]
  • Replace Obie\Http\Client with Obie\Http\Request using its method perform()
  • Replace Obie\Util::formatBytes with Obie\Formatters\Bytes::toString
  • Replace Obie\Util::formatTime with Obie\Formatters\Time::toRelativeString
  • Replace Obie\ModelHelpers::getSingular with Obie\Formatters\EnglishNoun::toSingular
  • Replace Obie\ModelHelpers::getPlural with Obie\Formatters\EnglishNoun::toPlural
  • Replace Obie\ModelHelpers::getSingularFromClassNS with Obie\Formatters\EnglishNoun::classNameToSingular
  • Replace Obie\ModelHelpers::getSnakeCase with Obie\Formatters\Casing::camelToSnake
  • Replace Obie\ModelHelpers::getCamelCase with Obie\Formatters\Casing::snakeToCamel
  • Replace Obie\Util::sendMail with Obie\App::sendMail

[1] Ideally, replace all possible use of Router with Request / Response as well.

Documentation

I want to provide documentation in the future, but currently there is not enough development time to write any documentation.

I try to write most of the code as self-documenting and minimal as possible, please try to read the code to get an idea of how to use it.

Support

There will be no support (as in help) provided, other than fixing bugs.

This framework is in production use and is being maintained, but you will have to be on your own in using it, for now.