Skip to content

Commit 11a68f6

Browse files
committed
rename project and add other inliner
1 parent 0c5a225 commit 11a68f6

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

composer.json

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "petecoop/laravel-inky",
2+
"name": "fibis/laravel-inky",
33
"description": "Foundation Inky email templates in Laravel",
44
"keywords": ["foundation", "inky", "laravel"],
55
"license": "MIT",
@@ -10,12 +10,13 @@
1010
}
1111
],
1212
"require": {
13-
"hampe/inky": "^1.3.6.2",
13+
"filipegar/inky": "^1.3.7",
1414
"illuminate/support": "~5.1",
1515
"illuminate/view": "~5.1",
1616
"symfony/css-selector": "^2.7|^3.0|^4.0",
1717
"symfony/dom-crawler": "^2.7|^3.0|^4.0",
18-
"tijsverkoyen/css-to-inline-styles": "^2.2"
18+
"tijsverkoyen/css-to-inline-styles": "^2.2",
19+
"pelago/emogrifier": "^2.0"
1920
},
2021
"require-dev": {
2122
"graham-campbell/testbench": "^3.3",
@@ -24,18 +25,18 @@
2425
},
2526
"autoload": {
2627
"psr-4": {
27-
"Petecoop\\LaravelInky\\": "src"
28+
"fibis\\LaravelInky\\": "src"
2829
}
2930
},
3031
"autoload-dev": {
3132
"psr-4": {
32-
"Petecoop\\Tests\\LaravelInky\\": "tests"
33+
"fibis\\Tests\\LaravelInky\\": "tests"
3334
}
3435
},
3536
"extra": {
3637
"laravel": {
3738
"providers": [
38-
"Petecoop\\LaravelInky\\InkyServiceProvider"
39+
"fibis\\LaravelInky\\InkyServiceProvider"
3940
]
4041
}
4142
}

src/InkyCompiler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Petecoop\LaravelInky;
3+
namespace fibis\LaravelInky;
44

55
use Illuminate\View\Compilers\Compiler;
66
use Illuminate\View\Compilers\CompilerInterface;

src/InkyCompilerEngine.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
<?php
22

3-
namespace Petecoop\LaravelInky;
3+
namespace fibis\LaravelInky;
44

55
use Illuminate\View\Engines\CompilerEngine;
66
use Illuminate\View\Compilers\CompilerInterface;
77
use Illuminate\Filesystem\Filesystem;
88
use Symfony\Component\DomCrawler\Crawler;
9-
use TijsVerkoyen\CssToInlineStyles\CssToInlineStyles;
109

1110
class InkyCompilerEngine extends CompilerEngine
1211
{
@@ -46,8 +45,8 @@ public function get($path, array $data = [])
4645
return $files->get($path);
4746
})->implode("\n\n");
4847

49-
$inliner = new CssToInlineStyles();
50-
return $inliner->convert($results, $styles);
48+
$emogrifier = new \Pelago\Emogrifier($results, $styles);
49+
return $emogrifier->emogrify();
5150
}
5251

5352
public function getFiles()

src/InkyServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Petecoop\LaravelInky;
3+
namespace fibis\LaravelInky;
44

55
use Illuminate\Support\ServiceProvider;
66

0 commit comments

Comments
 (0)