PHP code example of icaine / flunorette
1. Go to this page and download the library: Download icaine/flunorette library . Choose the download type require .
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
icaine / flunorette example snippets
//BC part
//https://github.com/icaine/RenamedClassLoader
$rcLoader = new iCaine\RenamedClassLoader([
'Flunorette\\NetteDatabaseReplacer' => 'Flunorette\\Bridges\\Nette\\NetteDatabaseReplacer',
'Flunorette\\Hydrator' => 'Flunorette\\Hydrators\\Hydrator',
'Flunorette\\HydratorSelectionDefault' => 'Flunorette\\Hydrators\\HydratorSelection',
'Flunorette\\HydratorArrayHash' => 'Flunorette\\Hydrators\\HydratorArrayHash',
'Flunorette\\HydratorResult' => 'Flunorette\\Hydrators\\HydratorField',
'Flunorette\\ActiveRow' => 'Flunorette\\Selections\\ActiveRow',
'Flunorette\\Selection' => 'Flunorette\\Selections\\Selection',
'Flunorette\\GroupedSelection' => 'Flunorette\\Selections\\GroupedSelection',
'Flunorette\\ISelectionFactory' => 'Flunorette\\Selections\\ISelectionFactory',
'Flunorette\\SelectionFactory' => 'Flunorette\\Selections\\SelectionFactory',
'Flunorette\\DeleteQuery' => 'Flunorette\\Queries\\DeleteQuery',
'Flunorette\\InsertQuery' => 'Flunorette\\Queries\\InsertQuery',
'Flunorette\\JoinableQuery' => 'Flunorette\\Queries\\JoinableQuery',
'Flunorette\\Query' => 'Flunorette\\Queries\\Query',
'Flunorette\\QueryBuilder' => 'Flunorette\\Queries\\QueryBuilder',
'Flunorette\\QueryContext' => 'Flunorette\\Queries\\QueryContext',
'Flunorette\\SelectQuery' => 'Flunorette\\Queries\\SelectQuery',
'Flunorette\\UpdateQuery' => 'Flunorette\\Queries\\UpdateQuery',
'Flunorette\\IReflection' => 'Flunorette\\Reflections\\IReflection',
'Flunorette\\ConventionalReflection' => 'Flunorette\\Reflections\\ConventionalReflection',
'Flunorette\\DiscoveredReflection' => 'Flunorette\\Reflections\\DiscoveredReflection',
'Flunorette\\ReflectionException' => 'Flunorette\\Reflections\\ReflectionException',
]);
$rcLoader->onClassLoaded[] = function ($old, $new) {
trigger_error($old, E_USER_DEPRECATED);
};
$rcLoader->register();
//If you are using the replacer
//Flunorette\NetteDatabaseReplacer::replace();
//end BC part