Skip to content

blackkat98/AP-repository-design-pattern

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

AP-repository-design-pattern

Base.VN

Repository Design Pattern for AP Framework


Usages

  • Create folder dev/repositories
  • Copy both BlankRepository.php and BlankContract.php into that folder
  • Register dev/repositories into app.ini
  • Foreach model, create its own repository class, extending BaseRepository and override function model() like below:
    return \namespace_name\ModelName::class;

Deeper Insight

  • Using function call_user_func_array to call static function find() of AP Framework to execute queries
  • Using array manipulating functions to examine and deal with input data

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages