File tree 9 files changed +147
-0
lines changed
9 files changed +147
-0
lines changed Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
1
+ # IDE
2
+ .idea
3
+
4
+ # composer
5
+ vendor
6
+ composer.lock
7
+
8
+ # phpunit
9
+ /phpunit.xml
10
+ .phpunit.result.cache
Original file line number Diff line number Diff line change
1
+ preset : laravel
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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.
Original file line number Diff line number Diff line change
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
+ }
Original file line number Diff line number Diff line change
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 >
Original file line number Diff line number Diff line change
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
+ }
Original file line number Diff line number Diff line change
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
+ }
You can’t perform that action at this time.
0 commit comments