File: /home/boxelikax/public_html/demoltec.com/.github.zip
PK 8�];̕`� � workflows/lint.ymlnu �[��� name: lint
on: [ push ]
jobs:
run-linters:
name: Run linters
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- uses: php-actions/composer@v6
name: Install composer dependencies
- uses: php-actions/composer@v6
name: Run rector
with:
command: ci:rector
- uses: php-actions/composer@v6
name: Run standards
with:
command: ci:standards
PK 8�]����� � workflows/unit-test.ymlnu �[��� name: unit-test
on: [push]
jobs:
build-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: php-actions/composer@v6
- name: PHPUnit Tests
uses: php-actions/phpunit@v4
with:
php_extensions: xdebug
bootstrap: tests/bootstrap.php
configuration: phpunit.xml
args: --coverage-text
env:
XDEBUG_MODE: coverage
PK �!]a�1�R R workflows/php-cs-fixer.ymlnu �[��� name: Check & fix styling
on: [push]
jobs:
php-cs-fixer:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
- name: Run PHP CS Fixer
uses: docker://oskarstark/php-cs-fixer-ga
with:
args: --config=.php_cs.dist.php --allow-risky=yes
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Fix styling
PK �!]H�kf� � workflows/run-tests.ymlnu �[��� name: Tests
on: [push, pull_request]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest]
php: [8.2, 8.1, 8.0, 7.4]
stability: [prefer-lowest, prefer-stable]
name: P${{ matrix.php }} - ${{ matrix.stability }} - ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo
coverage: none
- name: Setup problem matchers
run: |
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
- name: Install dependencies
run: composer update --${{ matrix.stability }} --prefer-dist --no-interaction
- name: Execute tests
run: vendor/bin/phpunit
PK �!]g�I FUNDING.ymlnu �[��� github: spatie
PK �^]�� � ISSUE_TEMPLATE.mdnu �[��� The PHP Code:
-------------
```php
require('./vendor/autoload.php');
use LightnCandy\LightnCandy;
// The Template:
$template = <<<VAREND
put template with issues here...
VAREND;
// Helpers:
$helpers = array(
'foo' => function () {
return 'Hello World';
},
);
// Partials:
$partials = array(
'bar' => 'Yes, partial',
);
$phpStr = LightnCandy::compile($template, array(
// Used compile flags
'flags' => LightnCandy::FLAG_ERROR_EXCEPTION | LightnCandy::FLAG_HANDLEBARS,
'helpers' => $helpers,
'partials' => $partials,
));
echo "Generated PHP Code:\n$phpStr\n";
// Input Data:
$data = array(
'qoo' => 'moo'
);
// Save the compiled PHP code into a php file
file_put_contents('render.php', '<?php ' . $phpStr . '?>');
// Get the render function from the php file
$renderer = include('render.php');
echo "Result:\n" . $renderer($data);
```
The Issue:
----------
Describe your issue or