Skip to content

oceanbeedev/oceanbee_autoload_class_function_php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

oceanbee_autoload_class_function_php

PHP class auto load function with parameters

Example

<?php 

  include './oceanbee_auto_load_class_function.php' ;
  
  class Request {
    public function get($name){
      return $_GET[$name];
    }
  }
  
  class Post {
    
    public function create(Request $request,$id){
      $data = [
        'title'=>$request->get('title') ,
        'id'=>$id
      ];
      
      //to do
      
    }
  
  }
  
  
  OceanbeeAutoLoadClassFunction::name('Post')->method('create',[
    'id'=>12
  ]);
  

About

PHP class auto load function with parameters

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages