Skip to content

Commit e1cabe7

Browse files
author
Illia Sakovich
committedNov 30, 2019
Initial commit
0 parents  commit e1cabe7

9 files changed

+147
-0
lines changed
 

‎.gitattributes

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/.gitattributes export-ignore
2+
/.gitignore export-ignore
3+
/.styleci.yml export-ignore
4+
/phpunit.xml.dist export-ignore
5+
/tests export-ignore
6+
/.travis.yml export-ignore

‎.gitignore

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# IDE
2+
.idea
3+
4+
# composer
5+
vendor
6+
composer.lock
7+
8+
# phpunit
9+
/phpunit.xml
10+
.phpunit.result.cache

‎.styleci.yml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
preset: laravel

‎.travis.yml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
language: php
2+
3+
php:
4+
- 7.2
5+
- 7.3
6+
7+
# faster builds on new travis setup not using sudo
8+
sudo: false
9+
10+
# cache vendor dirs
11+
cache:
12+
directories:
13+
- $HOME/.composer/cache
14+
15+
install:
16+
- travis_retry composer self-update && composer --version
17+
- export PATH="$HOME/.composer/vendor/bin:$PATH"
18+
- travis_retry composer install --prefer-dist --no-interaction
19+
20+
script:
21+
- vendor/bin/phpunit $PHPUNIT_FLAGS

‎README.md

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Laravel Dynamic Renderer
2+
3+
## Installation
4+
5+
You can install this package via composer using this command:
6+
7+
```bash
8+
composer require coderello/laravel-dynamic-renderer
9+
```
10+
11+
The package will automatically register itself.

‎composer.json

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"name": "coderello/laravel-dynamic-renderer",
3+
"description": "Dynamic renderer for your Laravel application.",
4+
"type": "library",
5+
"license": "MIT",
6+
"require": {
7+
"illuminate/support": "^6.0"
8+
},
9+
"require-dev": {
10+
"orchestra/testbench": "^4.3"
11+
},
12+
"autoload": {
13+
"psr-4": {
14+
"Coderello\\DynamicRenderer\\": "src/"
15+
}
16+
},
17+
"autoload-dev": {
18+
"psr-4": {
19+
"Coderello\\DynamicRenderer\\Tests\\": "tests/"
20+
}
21+
},
22+
"scripts": {
23+
"test": "vendor/bin/phpunit --colors=always"
24+
},
25+
"extra": {
26+
"laravel": {
27+
"providers": [
28+
"Coderello\\DynamicRenderer\\DynamicRendererServiceProvider"
29+
]
30+
}
31+
}
32+
}

‎phpunit.xml.dist

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<phpunit bootstrap="vendor/autoload.php"
3+
backupGlobals="false"
4+
backupStaticAttributes="false"
5+
colors="true"
6+
verbose="true"
7+
convertErrorsToExceptions="true"
8+
convertNoticesToExceptions="true"
9+
convertWarningsToExceptions="true"
10+
processIsolation="false"
11+
stopOnFailure="false">
12+
<testsuites>
13+
<testsuite name="Dynamic Renderer Test Suite">
14+
<directory>tests</directory>
15+
</testsuite>
16+
</testsuites>
17+
<filter>
18+
<whitelist>
19+
<directory suffix=".php">src/</directory>
20+
</whitelist>
21+
</filter>
22+
</phpunit>
+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<?php
2+
3+
namespace Coderello\DynamicRenderer;
4+
5+
use Illuminate\Support\ServiceProvider;
6+
7+
class DynamicRendererServiceProvider extends ServiceProvider
8+
{
9+
/**
10+
* Bootstrap shared data service.
11+
*
12+
* @return void
13+
*/
14+
public function boot()
15+
{
16+
//
17+
}
18+
19+
/**
20+
* Register any application services.
21+
*
22+
* @return void
23+
*/
24+
public function register()
25+
{
26+
//
27+
}
28+
}

‎tests/AbstractTestCase.php

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?php
2+
3+
namespace Coderello\DynamicRenderer\Tests;
4+
5+
use Coderello\DynamicRenderer\DynamicRendererServiceProvider;
6+
use Orchestra\Testbench\TestCase;
7+
8+
abstract class AbstractTestCase extends TestCase
9+
{
10+
protected function getPackageProviders($app)
11+
{
12+
return [
13+
DynamicRendererServiceProvider::class,
14+
];
15+
}
16+
}

0 commit comments

Comments
 (0)
Please sign in to comment.