method analyzeLibrary documentation in bbn\Parsers\Php

Function that analyzes the whole library with the same name space returning all the information of all the classes making part of it

function(string $path, string $namespace = '') { if ( !empty($path) && !empty($namespace) ) { $fs = new System(); if ($fs->cd($path)) { $files = $fs->scan('.', '.php', false); $arr = []; if (is_array($files) && count($files)) { foreach ($files as $file) { $bits = X::split($file, '/'); $name = X::basename(array_pop($bits), '.php'); $class = $namespace . '\\' . (empty($bits) ? '' : X::join($bits, '\\') . '\\') . $name; if (class_exists($class, true) || interface_exists($class, true) || trait_exists($class, true)) { try { $arr[$file] = $this->analyzeCLass($class, $path); } catch (\Exception $e) { die(var_dump($file, $e)); if (isset($arr[$file])) { unset($arr[$file]); } } } } } } return $arr; } return null; }

Function that analyzes the whole library with the same name space returning all the information of all the classes making part of it BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way

This website uses cookies to ensure you get the best experience on our website.