PHP Classes

Basic Controller Framework: Framework to route requests configured controllers

Recommend this page to a friend!
     
  Info   Example   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 57 All time: 10,559 This week: 74Up
Version License PHP version Categories
basic-controller-fra 1.0GNU General Publi...7PHP 5, Libraries, Design Patterns
Description 

Author

This package is a framework to route requests configured controllers.

An application bootstrap code can configure routes by setting callback functions that act as controllers and will be called when a request matches a given URL pattern.

The framework can also register components for other purposes like database access and configuration processing.

Picture of Yerfry Ramirez
  Performance   Level  
Name: Yerfry Ramirez is available for providing paid consulting. Contact Yerfry Ramirez .
Classes: 7 packages by
Country: Sweden Sweden
Age: ???
All time rank: 183518 in Sweden Sweden
Week rank: 197 Up2 in Sweden Sweden Up
Innovation award
Innovation award
Nominee: 1x

Example

<?php
require __DIR__ . '/../bootstrap/app.php';

$App->resolve(Router::CLASS, ($request = $App->resolve(Request::CLASS))->setGlobal('request', $request));
?>


Details

Basic-Controller-Framework


  Files folder image Files (259)  
File Role Description
Files folder imagebootstrap (1 file, 1 directory)
Files folder imagepublic (2 files)
Files folder imageresources (2 files, 3 directories)
Files folder imagetemplate (2 directories)
Accessible without login Plain text file autoloader.php Aux. Auxiliary script
Accessible without login Plain text file README.md Data Auxiliary data

  Files folder image Files (259)  /  bootstrap  
File Role Description
Files folder imageconfig (3 files)
  Accessible without login Plain text file app.php Example Example script

  Files folder image Files (259)  /  bootstrap  /  config  
File Role Description
  Accessible without login Plain text file default.php Conf. Configuration script
  Accessible without login Plain text file mysql.php Conf. Configuration script
  Accessible without login Plain text file smarty.php Conf. Configuration script

  Files folder image Files (259)  /  public  
File Role Description
  Accessible without login Plain text file .htaccess Data Auxiliary data
  Accessible without login Plain text file index.php Example Example script

  Files folder image Files (259)  /  resources  
File Role Description
Files folder imageControllers (1 file)
Files folder imageFramework (5 directories)
Files folder imageSmarty (5 files, 2 directories)
  Plain text file App.php Class Class source
  Plain text file Singleton.php Class Class source

  Files folder image Files (259)  /  resources  /  Controllers  
File Role Description
  Plain text file HomeController.php Class Class source

  Files folder image Files (259)  /  resources  /  Framework  
File Role Description
Files folder imageConfig (3 files, 2 directories)
Files folder imageHandler (2 directories)
Files folder imageHttp (4 files, 4 directories)
Files folder imageMySQL (2 files, 2 directories)
Files folder imageRouting (3 files, 2 directories)

  Files folder image Files (259)  /  resources  /  Framework  /  Config  
File Role Description
Files folder imageExceptions (1 file)
Files folder imageInterfaces (2 files)
  Plain text file Config.php Class Class source
  Plain text file Environments.php Class Class source
  Plain text file Loader.php Class Class source

  Files folder image Files (259)  /  resources  /  Framework  /  Config  /  Exceptions  
File Role Description
  Plain text file LoaderException.php Class Class source

  Files folder image Files (259)  /  resources  /  Framework  /  Config  /  Interfaces  
File Role Description
  Plain text file IEnvironments.php Class Class source
  Plain text file ILoader.php Class Class source

  Files folder image Files (259)  /  resources  /  Framework  /  Handler  
File Role Description
Files folder imageAbstracts (1 file)
Files folder imageExceptions (1 file)

  Files folder image Files (259)  /  resources  /  Framework  /  Handler  /  Abstracts  
File Role Description
  Plain text file AbstractHandler.php Class Class source

  Files folder image Files (259)  /  resources  /  Framework  /  Handler  /  Exceptions  
File Role Description
  Plain text file HandlerResolveException.php Class Class source

  Files folder image Files (259)  /  resources  /  Framework  /  Http  
File Role Description
Files folder imageBuilders (4 files, 1 directory)
Files folder imageExceptions (6 files)
Files folder imageHeaders (4 files, 4 directories)
Files folder imageInterfaces (1 file)
  Plain text file FileBag.php Class Class source
  Plain text file Request.php Class Class source
  Plain text file Response.php Class Class source
  Plain text file UploadedFile.php Class Class source

  Files folder image Files (259)  /  resources  /  Framework  /  Http  /  Builders  
File Role Description
Files folder imageExceptions (1 file)
  Plain text file FileBagBuilder.php Class Class source
  Plain text file RequestBuilder.php Class Class source
  Plain text file ResponseBuilder.php Class Class source
  Plain text file UploadedFileBuilder.php Class Class source

  Files folder image Files (259)  /  resources  /  Framework  /  Http  /  Builders  /  Exceptions  
File Role Description
  Plain text file FrameworkHtppBuild...ameterException.php Class Class source

  Files folder image Files (259)  /  resources  /  Framework  /  Http  /  Exceptions  
File Role Description
  Plain text file FrameworkHttpReque...CookieException.php Class Class source
  Plain text file FrameworkHttpReque...errideException.php Class Class source
  Plain text file FrameworkHttpReque...idFileException.php Class Class source
  Plain text file FrameworkHttpReque...MethodException.php Class Class source
  Plain text file FrameworkHttpReque...ameterException.php Class Class source
  Plain text file FrameworkHttpReque...errideException.php Class Class source

  Files folder image Files (259)  /  resources  /  Framework  /  Http  /  Headers  
File Role Description
Files folder imageAbstracts (1 file)
Files folder imageCookie (1 file)
Files folder imageExceptions (1 file)
Files folder imageInterfaces (1 file)
  Plain text file Accept.php Class Class source
  Plain text file ContentDisposition.php Class Class source
  Plain text file ContentType.php Class Class source
  Plain text file Location.php Class Class source

  Files folder image Files (259)  /  resources  /  Framework  /  Http  /  Headers  /  Abstracts  
File Role Description
  Plain text file Common.php Class Class source

  Files folder image Files (259)  /  resources  /  Framework  /  Http  /  Headers  /  Cookie  
File Role Description
  Plain text file SetCookie.php Class Class source

  Files folder image Files (259)  /  resources  /  Framework  /  Http  /  Headers  /  Exceptions  
File Role Description
  Plain text file FrameworkHttpHeadersCookieException.php Class Class source

  Files folder image Files (259)  /  resources  /  Framework  /  Http  /  Headers  /  Interfaces  
File Role Description
  Plain text file Abstracted.php Class Class source

  Files folder image Files (259)  /  resources  /  Framework  /  Http  /  Interfaces  
File Role Description
  Plain text file Routable.php Class Class source

  Files folder image Files (259)  /  resources  /  Framework  /  MySQL  
File Role Description
Files folder imageExceptions (2 files)
Files folder imageInterfaces (2 files)
  Plain text file Connection.php Class Class source
  Plain text file Database.php Class Class source

  Files folder image Files (259)  /  resources  /  Framework  /  MySQL  /  Exceptions  
File Role Description
  Plain text file DatabaseConnectionErrorException.php Class Class source
  Plain text file DatabaseStmtExecuteException.php Class Class source

  Files folder image Files (259)  /  resources  /  Framework  /  MySQL  /  Interfaces  
File Role Description
  Plain text file IConnection.php Class Class source
  Plain text file IDatabase.php Class Class source

  Files folder image Files (259)  /  resources  /  Framework  /  Routing  
File Role Description
Files folder imageException (3 files)
Files folder imageTraits (1 file)
  Plain text file Order.php Class Class source
  Plain text file Router.php Class Class source
  Plain text file RouterParser.php Class Class source

  Files folder image Files (259)  /  resources  /  Framework  /  Routing  /  Exception  
File Role Description
  Plain text file InvalidMiddlewareException.php Class Class source
  Plain text file MethodException.php Class Class source
  Plain text file ResponseException.php Class Class source

  Files folder image Files (259)  /  resources  /  Framework  /  Routing  /  Traits  
File Role Description
  Plain text file RouterTrait.php Class Class source

  Files folder image Files (259)  /  resources  /  Smarty  
File Role Description
Files folder imageplugins (47 files)
Files folder imagesysplugins (149 files)
  Plain text file Autoloader.php Class Class source
  Accessible without login Plain text file bootstrap.php Aux. Auxiliary script
  Accessible without login Plain text file debug.tpl Data Auxiliary data
  Plain text file Smarty.class.php Class Class source
  Plain text file SmartyBC.class.php Class Class source

  Files folder image Files (259)  /  resources  /  Smarty  /  plugins  
File Role Description
  Accessible without login Plain text file block.textformat.php Example Example script
  Accessible without login Plain text file function.counter.php Example Example script
  Accessible without login Plain text file function.cycle.php Example Example script
  Accessible without login Plain text file function.fetch.php Example Example script
  Accessible without login Plain text file function.html_checkboxes.php Example Example script
  Accessible without login Plain text file function.html_image.php Example Example script
  Accessible without login Plain text file function.html_options.php Example Example script
  Accessible without login Plain text file function.html_radios.php Example Example script
  Accessible without login Plain text file function.html_select_date.php Example Example script
  Accessible without login Plain text file function.html_select_time.php Example Example script
  Accessible without login Plain text file function.html_table.php Aux. Auxiliary script
  Accessible without login Plain text file function.mailto.php Aux. Auxiliary script
  Accessible without login Plain text file function.math.php Example Example script
  Accessible without login Plain text file modifier.capitalize.php Aux. Auxiliary script
  Accessible without login Plain text file modifier.date_format.php Aux. Auxiliary script
  Accessible without login Plain text file modifier.debug_print_var.php Aux. Auxiliary script
  Accessible without login Plain text file modifier.escape.php Aux. Auxiliary script
  Accessible without login Plain text file modifier.mb_wordwrap.php Aux. Auxiliary script
  Accessible without login Plain text file modifier.regex_replace.php Aux. Auxiliary script
  Accessible without login Plain text file modifier.replace.php Aux. Auxiliary script
  Accessible without login Plain text file modifier.spacify.php Aux. Auxiliary script
  Accessible without login Plain text file modifier.truncate.php Aux. Auxiliary script
  Accessible without login Plain text file modifiercompiler.cat.php Aux. Auxiliary script
  Accessible without login Plain text file modifiercompiler.count_characters.php Aux. Auxiliary script
  Accessible without login Plain text file modifiercompiler.count_paragraphs.php Aux. Auxiliary script
  Accessible without login Plain text file modifiercompiler.count_sentences.php Aux. Auxiliary script
  Accessible without login Plain text file modifiercompiler.count_words.php Aux. Auxiliary script
  Accessible without login Plain text file modifiercompiler.default.php Aux. Auxiliary script
  Accessible without login Plain text file modifiercompiler.escape.php Example Example script
  Accessible without login Plain text file modifiercompiler.from_charset.php Aux. Auxiliary script
  Accessible without login Plain text file modifiercompiler.indent.php Aux. Auxiliary script
  Accessible without login Plain text file modifiercompiler.lower.php Aux. Auxiliary script
  Accessible without login Plain text file modifiercompiler.noprint.php Aux. Auxiliary script
  Accessible without login Plain text file modifiercompiler.string_format.php Aux. Auxiliary script
  Accessible without login Plain text file modifiercompiler.strip.php Aux. Auxiliary script
  Accessible without login Plain text file modifiercompiler.strip_tags.php Aux. Auxiliary script
  Accessible without login Plain text file modifiercompiler.to_charset.php Aux. Auxiliary script
  Accessible without login Plain text file modifiercompiler.unescape.php Aux. Auxiliary script
  Accessible without login Plain text file modifiercompiler.upper.php Aux. Auxiliary script
  Accessible without login Plain text file modifiercompiler.wordwrap.php Example Example script
  Accessible without login Plain text file outputfilter.trimwhitespace.php Aux. Auxiliary script
  Accessible without login Plain text file shared.escape_special_chars.php Aux. Auxiliary script
  Accessible without login Plain text file shared.literal_compiler_param.php Example Example script
  Accessible without login Plain text file shared.make_timestamp.php Example Example script
  Accessible without login Plain text file shared.mb_str_replace.php Aux. Auxiliary script
  Accessible without login Plain text file shared.mb_unicode.php Aux. Auxiliary script
  Accessible without login Plain text file variablefilter.htmlspecialchars.php Aux. Auxiliary script

  Files folder image Files (259)  /  resources  /  Smarty  /  sysplugins  
File Role Description
  Plain text file smartycompilerexception.php Class Class source
  Plain text file smartyexception.php Class Class source
  Plain text file smarty_cacheresource.php Class Class source
  Plain text file smarty_cacheresource_custom.php Class Class source
  Plain text file smarty_cacheresource_keyvaluestore.php Class Class source
  Plain text file smarty_data.php Class Class source
  Plain text file smarty_internal_block.php Class Class source
  Plain text file smarty_internal_cacheresource_file.php Class Class source
  Plain text file smarty_internal_compilebase.php Class Class source
  Plain text file smarty_internal_compile_append.php Class Class source
  Plain text file smarty_internal_compile_assign.php Class Class source
  Plain text file smarty_internal_compile_block.php Class Class source
  Plain text file smarty_internal_compile_block_child.php Class Class source
  Plain text file smarty_internal_compile_block_parent.php Class Class source
  Plain text file smarty_internal_compile_break.php Class Class source
  Plain text file smarty_internal_compile_call.php Class Class source
  Plain text file smarty_internal_compile_capture.php Class Class source
  Plain text file smarty_internal_compile_config_load.php Class Class source
  Plain text file smarty_internal_compile_continue.php Class Class source
  Plain text file smarty_internal_compile_debug.php Class Class source
  Plain text file smarty_internal_compile_eval.php Class Class source
  Plain text file smarty_internal_compile_extends.php Class Class source
  Plain text file smarty_internal_compile_for.php Class Class source
  Plain text file smarty_internal_compile_foreach.php Class Class source
  Plain text file smarty_internal_compile_function.php Class Class source
  Plain text file smarty_internal_compile_if.php Class Class source
  Plain text file smarty_internal_compile_include.php Class Class source
  Plain text file smarty_internal_compile_include_php.php Class Class source
  Plain text file smarty_internal_compile_insert.php Class Class source
  Plain text file smarty_internal_compile_ldelim.php Class Class source
  Plain text file smarty_internal_compile_make_nocache.php Class Class source
  Plain text file smarty_internal_compile_nocache.php Class Class source
  Plain text file smarty_internal_co...te_block_plugin.php Class Class source
  Plain text file smarty_internal_co..._foreachsection.php Class Class source
  Plain text file smarty_internal_co...function_plugin.php Class Class source
  Plain text file smarty_internal_co...rivate_modifier.php Class Class source
  Plain text file smarty_internal_co..._block_function.php Class Class source
  Plain text file smarty_internal_co...object_function.php Class Class source
  Plain text file smarty_internal_compile_private_php.php Class Class source
  Plain text file smarty_internal_co...rint_expression.php Class Class source
  Plain text file smarty_internal_co...egistered_block.php Class Class source
  Plain text file smarty_internal_co...stered_function.php Class Class source
  Plain text file smarty_internal_co...pecial_variable.php Class Class source
  Plain text file smarty_internal_compile_rdelim.php Class Class source
  Plain text file smarty_internal_compile_section.php Class Class source
  Plain text file smarty_internal_compile_setfilter.php Class Class source
  Plain text file smarty_internal_co...red_inheritance.php Class Class source
  Plain text file smarty_internal_compile_while.php Class Class source
  Plain text file smarty_internal_configfilelexer.php Class Class source
  Plain text file smarty_internal_configfileparser.php Class Class source
  Plain text file smarty_internal_config_file_compiler.php Class Class source
  Plain text file smarty_internal_data.php Class Class source
  Plain text file smarty_internal_debug.php Class Class source
  Plain text file smarty_internal_extension_handler.php Class Class source
  Plain text file smarty_internal_me...autoloadfilters.php Class Class source
  Plain text file smarty_internal_me...efaultmodifiers.php Class Class source
  Plain text file smarty_internal_method_append.php Class Class source
  Plain text file smarty_internal_method_appendbyref.php Class Class source
  Plain text file smarty_internal_method_assignbyref.php Class Class source
  Plain text file smarty_internal_method_assignglobal.php Class Class source
  Plain text file smarty_internal_me..._clearallassign.php Class Class source
  Plain text file smarty_internal_method_clearallcache.php Class Class source
  Plain text file smarty_internal_method_clearassign.php Class Class source
  Plain text file smarty_internal_method_clearcache.php Class Class source
  Plain text file smarty_internal_me...ompiledtemplate.php Class Class source
  Plain text file smarty_internal_method_clearconfig.php Class Class source
  Plain text file smarty_internal_me...ompileallconfig.php Class Class source
  Plain text file smarty_internal_me...ilealltemplates.php Class Class source
  Plain text file smarty_internal_method_configload.php Class Class source
  Plain text file smarty_internal_method_createdata.php Class Class source
  Plain text file smarty_internal_me...autoloadfilters.php Class Class source
  Plain text file smarty_internal_me...tconfigvariable.php Class Class source
  Plain text file smarty_internal_method_getconfigvars.php Class Class source
  Plain text file smarty_internal_me...etdebugtemplate.php Class Class source
  Plain text file smarty_internal_me...efaultmodifiers.php Class Class source
  Plain text file smarty_internal_method_getglobal.php Class Class source
  Plain text file smarty_internal_me...egisteredobject.php Class Class source
  Plain text file smarty_internal_me...tstreamvariable.php Class Class source
  Plain text file smarty_internal_method_gettags.php Class Class source
  Plain text file smarty_internal_me...gettemplatevars.php Class Class source
  Plain text file smarty_internal_method_loadfilter.php Class Class source
  Plain text file smarty_internal_method_loadplugin.php Class Class source
  Plain text file smarty_internal_method_mustcompile.php Class Class source
  Plain text file smarty_internal_me...ercacheresource.php Class Class source
  Plain text file smarty_internal_method_registerclass.php Class Class source
  Plain text file smarty_internal_me...ltconfighandler.php Class Class source
  Plain text file smarty_internal_me...ltpluginhandler.php Class Class source
  Plain text file smarty_internal_me...templatehandler.php Class Class source
  Plain text file smarty_internal_me..._registerfilter.php Class Class source
  Plain text file smarty_internal_me..._registerobject.php Class Class source
  Plain text file smarty_internal_me..._registerplugin.php Class Class source
  Plain text file smarty_internal_me...egisterresource.php Class Class source
  Plain text file smarty_internal_me...autoloadfilters.php Class Class source
  Plain text file smarty_internal_me...etdebugtemplate.php Class Class source
  Plain text file smarty_internal_me...efaultmodifiers.php Class Class source
  Plain text file smarty_internal_method_unloadfilter.php Class Class source
  Plain text file smarty_internal_me...ercacheresource.php Class Class source
  Plain text file smarty_internal_me...nregisterfilter.php Class Class source
  Plain text file smarty_internal_me...nregisterobject.php Class Class source
  Plain text file smarty_internal_me...nregisterplugin.php Class Class source
  Plain text file smarty_internal_me...egisterresource.php Class Class source
  Plain text file smarty_internal_nocache_insert.php Class Class source
  Plain text file smarty_internal_parsetree.php Class Class source
  Plain text file smarty_internal_parsetree_code.php Class Class source
  Plain text file smarty_internal_parsetree_dq.php Class Class source
  Plain text file smarty_internal_parsetree_dqcontent.php Class Class source
  Plain text file smarty_internal_parsetree_tag.php Class Class source
  Plain text file smarty_internal_parsetree_template.php Class Class source
  Plain text file smarty_internal_parsetree_text.php Class Class source
  Plain text file smarty_internal_resource_eval.php Class Class source
  Plain text file smarty_internal_resource_extends.php Class Class source
  Plain text file smarty_internal_resource_file.php Class Class source
  Plain text file smarty_internal_resource_php.php Class Class source
  Plain text file smarty_internal_resource_registered.php Class Class source
  Plain text file smarty_internal_resource_stream.php Class Class source
  Plain text file smarty_internal_resource_string.php Class Class source
  Plain text file smarty_internal_runtime_cachemodify.php Class Class source
  Plain text file smarty_internal_ru...cheresourcefile.php Class Class source
  Plain text file smarty_internal_runtime_capture.php Class Class source
  Plain text file smarty_internal_runtime_codeframe.php Class Class source
  Plain text file smarty_internal_ru...e_filterhandler.php Class Class source
  Plain text file smarty_internal_runtime_foreach.php Class Class source
  Plain text file smarty_internal_ru..._getincludepath.php Class Class source
  Plain text file smarty_internal_runtime_inheritance.php Class Class source
  Plain text file smarty_internal_runtime_make_nocache.php Class Class source
  Plain text file smarty_internal_runtime_tplfunction.php Class Class source
  Plain text file smarty_internal_runtime_updatecache.php Class Class source
  Plain text file smarty_internal_runtime_updatescope.php Class Class source
  Plain text file smarty_internal_runtime_writefile.php Class Class source
  Plain text file smarty_internal_sm...emplatecompiler.php Class Class source
  Plain text file smarty_internal_template.php Class Class source
  Plain text file smarty_internal_templatebase.php Class Class source
  Plain text file smarty_internal_templatecompilerbase.php Class Class source
  Plain text file smarty_internal_templatelexer.php Class Class source
  Plain text file smarty_internal_templateparser.php Class Class source
  Plain text file smarty_internal_testinstall.php Class Class source
  Plain text file smarty_internal_undefined.php Class Class source
  Plain text file smarty_resource.php Class Class source
  Plain text file smarty_resource_custom.php Class Class source
  Plain text file smarty_resource_recompiled.php Class Class source
  Plain text file smarty_resource_uncompiled.php Class Class source
  Plain text file smarty_security.php Class Class source
  Plain text file smarty_template_cached.php Class Class source
  Plain text file smarty_template_compiled.php Class Class source
  Plain text file smarty_template_config.php Class Class source
  Plain text file smarty_template_resource_base.php Class Class source
  Plain text file smarty_template_source.php Class Class source
  Plain text file smarty_undefined_variable.php Class Class source
  Plain text file smarty_variable.php Class Class source

  Files folder image Files (259)  /  template  
File Role Description
Files folder imagecompiles (1 file)
Files folder imagethemes (1 directory)

  Files folder image Files (259)  /  template  /  compiles  
File Role Description
  Accessible without login Plain text file bfda50d4e5a3270550...le.default.html.php Example Example script

  Files folder image Files (259)  /  template  /  themes  
File Role Description
Files folder imagedefault (1 file)

  Files folder image Files (259)  /  template  /  themes  /  default  
File Role Description
  Accessible without login HTML file default.html Doc. Documentation

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:57
This week:0
All time:10,559
This week:74Up