PHP code example of codeatlas / scanner
1. Go to this page and download the library: Download codeatlas/scanner 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/ */
codeatlas / scanner example snippets
use CodeAtlas\Scanner\Scanner;
$scanner = Scanner::default();
$context = $scanner->scan('/path/to/laravel/project');
echo $context->name; // "vendor/project"
echo $context->framework; // "laravel"
echo $context->frameworkVersion; // "^11.0"
foreach ($context->filesOfType(FileType::Model) as $file) {
// ...
}