adhocore / phalcon-ext

Foundations, adapters, extensions, middlewares and utilities for Phalcon v4
MIT License
47 stars 3 forks source link

Initial release version #1

Closed adhocore closed 6 years ago

adhocore commented 6 years ago

Db.Extension

upsert()

to insert of update as per given criteria

insertAsBulk()

insert many items at once - in one query

countBy()

count rows in table by criteria

Db.Logger

hook into the db as an event listener and log all the sql queries- binds are interpolated

Di.Extension

registerAliases()

register aliases for di service so they can be resolved automatically

resolve()

recursively resolve all dependencies of a given class FQCN

replace()

override a di service but keep backup so it may be restored if needed (great for tests)

restore()

restore the overridden services to their usual defaults

Di.ProvidesDi

di()

easily resolve di services with this shortcut

Logger.EchoLogger

log()

Echoes anything right away - but you can control formatting and log level

Logger.LogsToFile

log()

Delegate mundane file logging task to this trait thereby cutting down boilerplate codes

Mail.Mailer

A Phalcon adapter/bridge/container/delegator (read: abcd) to swiftmailer

Mail.Mail

A child of swiftmail message to allow attaching attachments without much ado

Mail.Mailable

mail()

Like Logger.LogsToFile above, but for mails

Mail.Logger

Automatically logs all sent mails into file as a swiftmailer event listener- you can choose log formats: eml | html | json

Util.OpcachePrimer

prime()

Ensures to warm up opcache for all files in given path well before file exceution

Validation.Validation

Validate data like we did in elsewhere- setting rules as .well-known array key=>value pairs

Validation.Existence

Check for existence of some value in db

View.Twig

Use twig view natively in Phalcon

codecov-io commented 6 years ago

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@52ef13f). Click here to learn what that means. The diff coverage is 0%.

Impacted file tree graph

@@          Coverage Diff           @@
##             master    #1   +/-   ##
======================================
  Coverage          ?    0%           
  Complexity        ?   239           
======================================
  Files             ?    19           
  Lines             ?   588           
  Branches          ?     0           
======================================
  Hits              ?     0           
  Misses            ?   588           
  Partials          ?     0
Impacted Files Coverage Δ Complexity Δ
src/Di/ProvidesDi.php 0% <0%> (ø) 2 <2> (?)
src/View/Twig.php 0% <0%> (ø) 10 <10> (?)
src/Di/Extension.php 0% <0%> (ø) 29 <29> (?)
src/Db/Extension.php 0% <0%> (ø) 18 <18> (?)
src/Logger/LogsToFile.php 0% <0%> (ø) 3 <3> (?)
src/Http/BaseMiddleware.php 0% <0%> (ø) 13 <13> (?)
src/Http/Middleware/Cors.php 0% <0%> (ø) 19 <19> (?)
src/Db/Logger.php 0% <0%> (ø) 18 <18> (?)
src/Util/OpcachePrimer.php 0% <0%> (ø) 8 <8> (?)
src/Http/Middleware/Throttle.php 0% <0%> (ø) 11 <11> (?)
... and 9 more

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 52ef13f...1c5ce19. Read the comment docs.

adhocore commented 6 years ago

Initial release version - many rooms to polish - they will be done in small parts via different issues