You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Registering your own service video (it's easy !)
67
67
If you want to register an implementation of some service your class just needs to implement the "RicardoFiorani\Adapter\VideoAdapterInterface" or extend the RicardoFiorani\Adapter\AbstractServiceAdapter
68
68
69
-
A Fully functional example can be found [Here](https://github.com/ricardofiorani/php-video-url-parser/tree/master/example/RegisteringANewService.md).
69
+
A Fully functional example can be found [Here](https://github.com/ricardofiorani/php-video-url-parser/tree/master/documentation/RegisteringANewService.md).
70
70
71
71
PS: If you've made your awesome implementation of some well known service, feel free to send a Pull Request. All contributions are welcome :)
72
72
73
73
## Using your own framework's template engine
74
-
In this project I've used a simple renderer (which just does an echo of an iframe) but you can use your own implementation. It must follow the RicardoFiorani\Renderer\EmbedRendererInterface and just like that.
74
+
A Fully functional example can be found [Here](https://github.com/ricardofiorani/php-video-url-parser/tree/master/documentation/IntegratingYourOwnRenderer.md).
75
75
76
-
Here's an example:
77
-
### My Example Renderer Class
78
-
```php
79
-
namespace MyVendor\MyRenderer;
80
-
81
-
82
-
class MyOwnRenderer implements \RicardoFiorani\Renderer\EmbedRendererInterface
83
-
{
84
-
85
-
/**
86
-
* @param string $embedUrl
87
-
* @param integer $height
88
-
* @param integer $width
89
-
* @return string
90
-
*/
91
-
public function render($embedUrl, $height, $width)
Copy file name to clipboardExpand all lines: composer.json
+1-1
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
{
2
2
"name": "ricardofiorani/php-video-url-parser",
3
-
"description": "PHP Video URL Parser is a simple video url parser.",
3
+
"description": "A Simple and efficient PHP Video URL Parser that gives you thumbnails and embed codes for various services as Youtube, Vimeo, DailyMotion and Facebook",
0 commit comments