PHP code example of openclassrooms / front-desk-bundle

1. Go to this page and download the library: Download openclassrooms/front-desk-bundle 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/ */

    

openclassrooms / front-desk-bundle example snippets


// in AppKernel::registerBundles()
$bundles = array(
    // ...
    new OpenClassrooms\Bundle\FrontDeskBundle\OpenClassroomsFrontDeskBundle(),
    // ...
);

$enrollmentService = $container->get('openclassrooms.frontdesk.service.enrollment');

$enrollmentService->query($field, $filter, $limit);

$packService = $container->get('openclassrooms.frontdesk.service.pack');

$packService->create(new PackStub());

$packService->deletePack($packId); 
 
$personService = $container->get('openclassrooms.frontdesk.service.person');
 
$personService->create(new PersonStub());
 
$personService->update(new PersonStub());
 
$personService->find($personId);
 
$personService->findAll($page);
 
$personService->search($query);

$planService = $container->get('openclassrooms.frontdesk.service.plan');
$planService->getPlans($personId);

$visitService = $container->get('openclassrooms.frontdesk.service.visit');
$visitService->getVisits($personId, $from, $to);

$visitService = $container->get('openclassrooms.frontdesk.service.visit');
$visitService->deleteVisit($visitId);