Download the PHP package sowe/framework without Composer
On this page you can find all versions of the php package sowe/framework. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download sowe/framework
More information about sowe/framework
Files in sowe/framework
Download sowe/framework
More information about sowe/framework
Files in sowe/framework
Vendor sowe
Package framework
Short Description A light and simple DB query framework in native PHP 7
License
Package framework
Short Description A light and simple DB query framework in native PHP 7
License
Please rate this library. Is it a good library?
Informations about the package framework
Sowe-Framework
-
Sowe\Framework\AbstractEntity provides CRUD operations interface.
table
name and table primarykey
must be defined as static variables.__construct(Database $database)
get($id, $fields = ["*"])
list($fields = ["*"], $filters = null)
update($id, $data)
create($data)
delete($id)
Example
-
Sowe\Framework\AbstractObject extends
AbstractEntity
but also provides resource format interface.__construct(Database $database)
new()
load($id)
save()
remove()
getData($field)
setData($field, $value)
Example
-
Sowe\Framework\QueryBuilder used by both
AbstractEntity
andAbstractObject
. Provides a friendly database query builder interface__construct($type, Database $database)
where $type can be SELECT|UPDATE|INSERT|DELETEtable(string $table, string $alias = null)
fields(...$fields)
set($field, $value)
condition($field, $operator, $value)
conditions($conditions)
or()
limit($offset, $limit = null)
innerJoin($table, $alias, $field1, $operator, $field2)
leftJoin($table, $alias, $field1, $operator, $field2)
rightJoin($table, $alias, $field1, $operator, $field2)
join($type, $table, $alias, $field1, $operator, $field2)
order($field, $order)
group(...$fields)
build()
returns the Query objectrun()
returns the Query object after running the Example
-
Sowe\Framework\Mailer an interface to send mails using PHPMailer
__construct($hostname, $username, $password, $sender, $sendername, $auth = true, $security = PHPMailer::ENCRYPTION_STARTTLS)
new()
to($address, $name = '')
cc($address)
bcc($address)
subject($subject)
body($body)
htmlbody($body)
altbody($body)
attachment($path, $name = '', $encoding = 'base64', $type = '', $disposition = 'attachment')
debug()
enablesSMTPDebug
send()
Example
- Sowe\Framework\Logger extends Monolog\Logger to prepend file and line where the log was originated.
Example
All versions of framework with dependencies
PHP Build Version
Package Version
The package sowe/framework contains the following files
Loading the files please wait ....