-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from PreviewLinks/development
Merge Development
- Loading branch information
Showing
8 changed files
with
36 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# Security Policy | ||
|
||
If you discover any security related issues, please email [email protected] instead of using the issue tracker. | ||
If you discover any security related issues, please email [email protected] instead of using the issue tracker. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) Flowframe <[email protected]> | ||
Copyright (c) PreviewLinks <[email protected]> | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,17 @@ | ||
{ | ||
"name": "flowframe/php-previewify", | ||
"description": "The official PHP Previewify client", | ||
"name": "previewlinks/php-previewlinks", | ||
"description": "The official PHP Previewlinks client", | ||
"keywords": [ | ||
"Flowframe", | ||
"php-previewify" | ||
"Previewlinks", | ||
"php-previewlinks" | ||
], | ||
"homepage": "https://github.com/flowframe/php-previewify", | ||
"homepage": "https://github.com/PreviewLinks/php-previewlinks", | ||
"license": "MIT", | ||
"authors": [ | ||
{ | ||
"name": "Lars Klopstra", | ||
"email": "[email protected]", | ||
"name": "Logan Craft", | ||
"email": "[email protected]", | ||
"role": "Developer" | ||
} | ||
], | ||
|
@@ -25,12 +26,12 @@ | |
}, | ||
"autoload": { | ||
"psr-4": { | ||
"Flowframe\\Previewify\\": "src" | ||
"PreviewLinks\\": "src" | ||
} | ||
}, | ||
"autoload-dev": { | ||
"psr-4": { | ||
"Flowframe\\Previewify\\Tests\\": "tests" | ||
"PreviewLinks\\Tests\\": "tests" | ||
} | ||
}, | ||
"scripts": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
<?php | ||
|
||
use Flowframe\Previewify\Previewify; | ||
|
||
use function PHPUnit\Framework\assertEquals; | ||
|
||
use PreviewLinks\PreviewLinks; | ||
|
||
it('can generate an async image', function () { | ||
$previewify = new Previewify('test-key'); | ||
$previewlinks = new PreviewLinks('test-key'); | ||
|
||
$url = $previewify->asyncImage(1, [ | ||
'previewify:title' => 'Hi', | ||
'previewify:description' => 'This is a test', | ||
$url = $previewlinks->asyncImage(1, [ | ||
'previewlinks:title' => 'Hi', | ||
'previewlinks:description' => 'This is a test', | ||
]); | ||
|
||
assertEquals( | ||
'https://previewify.app/api/async-image?data=eyJ0ZW1wbGF0ZV9pZCI6MSwiZmllbGRzIjp7InByZXZpZXdpZnk6dGl0bGUiOiJIaSIsInByZXZpZXdpZnk6ZGVzY3JpcHRpb24iOiJUaGlzIGlzIGEgdGVzdCJ9fQ%3D%3D&signature=276956e53123b06bcf6a71624eb9a69a7e32cbfa72281ad53601fb24ae2468b8', | ||
'https://previewlinks.io/api/async-image?data=eyJ0ZW1wbGF0ZV9pZCI6MSwiZmllbGRzIjp7InByZXZpZXdsaW5rczp0aXRsZSI6IkhpIiwicHJldmlld2xpbmtzOmRlc2NyaXB0aW9uIjoiVGhpcyBpcyBhIHRlc3QifX0%3D&signature=8f690cf87aa9994a42eb7d4920788c6643a1cc9ec0025ec77a912052921af1f6', | ||
$url, | ||
); | ||
}); |