PHP code example of phdevutils / psic

1. Go to this page and download the library: Download phdevutils/psic 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/ */

    

phdevutils / psic example snippets


use PhDevUtils\Psic\Psic;

Psic::findSection('C');           // ['code' => 'C', 'title' => 'Manufacturing', 'divisions' => ['10', …, '33']]
Psic::findDivision('62');         // ['code' => '62', 'title' => 'Computer programming, …', 'section' => 'J']
Psic::sectionOf('62');            // ['code' => 'J', 'title' => 'Information and communication', …]

Psic::listDivisions(['section' => 'C']); // the 24 manufacturing divisions (10–33)
Psic::search('insurance');               // ['sections' => [K], 'divisions' => [65, 66, …]]