PHP Classes

File: vendor/phpoffice/phpspreadsheet/.sami.php

Recommend this page to a friend!
  Classes of Abed Nego Ragil Putra   PHP Inventory Management System with Scanner   vendor/phpoffice/phpspreadsheet/.sami.php   Download  
File: vendor/phpoffice/phpspreadsheet/.sami.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Inventory Management System with Scanner
Manage inventory stock using scanner application
Author: By
Last change:
Date: 4 years ago
Size: 712 bytes
 

Contents

Class file image Download
<?php

use Sami\RemoteRepository\GitHubRemoteRepository;
use
Sami\Sami;
use
Sami\Version\GitVersionCollection;
use
Symfony\Component\Finder\Finder;

$iterator = Finder::create()
    ->
files()
    ->
name('*.php')
    ->
in($dir = __DIR__ . '/src');
$versions = GitVersionCollection::create($dir)
    ->
addFromTags(function ($version) {
        return
preg_match('~^\d+\.\d+\.\d+$~', $version);
    })
    ->
add('master');

return new
Sami($iterator, [
   
'title' => 'PhpSpreadsheet',
   
'versions' => $versions,
   
'build_dir' => __DIR__ . '/build/%version%',
   
'cache_dir' => __DIR__ . '/cache/%version%',
   
'remote_repository' => new GitHubRemoteRepository('PHPOffice/PhpSpreadsheet', dirname($dir)),
]);