kasp3r / link-preview Goto Github PK
View Code? Open in Web Editor NEWLink preview library for PHP
License: MIT License
Link preview library for PHP
License: MIT License
Is this package support laravel 6.18? its not working on laravel version 6
Hi Kasp3r,
Can you upgrade Guzzle to 7x?
This is why it won't work on Laravel as it depends on a later version, Laravel 8x requires Guzzle ^7.0.1.
"guzzlehttp/guzzle": "^7.0.1"
Thanks
Derek
Hi,
Is the plugin validating the blocked ports? For example, www.dinamalar.com is working, suppose if the user enters https://dinamalar.com then it will crash as the port 443 is not open on that website. How to fix this issue?
Message: Client error response [status code] 410 [reason phrase] Gone [url] http://gdata.youtube.com/feeds/api/videos/zCbfWGgp9qs?v=2&alt=jsonc
I'm including the autoload.php from my composer after adding "kasp3r/link-preview": "dev-master" to my composer.json but when i try to make an instance of the class i get the error:
Fatal error: Class 'LinkPreview' not found
The utf8_decode( ) function willl make sure that for example Russian characters get displayed properly. This is almost crucial when dealing with content that needs to be previewed coming from anywhere in the world.
A sentence like: "Священная война (The Sacred War) - Alexandrov Red Army Choir" would otherwise show up as "СвÑ�Ñ�еннаÑ� война (The Sacred War) - Alexandrov Red Army Choir".
Youtube iframe not loading on https URL.
$filename = tempnam('/tmp', '');
file_put_contents($filename . '.jpg', file_get_contents($preview->getUrl()));
$preview->getUrl()
returns //s.ytimg.com/yts/img/yt_1200-vfl4C3T0K.png
which causes file_get_contents($preview->getUrl())
to fail.
Concatenating http:
to getUrl()
works.
I noticed today that some links are not parsed correctly. Eg. Akamai specifies a cookie a shows a redirect ('Location' header) and then the next page expects to see the cookie.
Now I assume that link-preview doesn't store/use cookies so it's unable to visit the page.
Given that Facebook and others do this just fine, I assume there are no legal/whatever requirements and this can be done.
Would you do it yourself or would you prefer a PR?
@kasp3r @edueo please look on it http://www.retl-en-ligne.com/go i have a issue with this url it is giving me uploads/... path but i want image with the base url
Some websites include many whitespaces in their tags. For example see the title tag of https://www.fressnapf.de/p/penthouse-arthur.
Maybe apply a trim
on all values? I did no pull request because there is another one open and maybe you have a better solution / more generic way or just want to include all whitespaces. So, just an issue and freedom to decide 💃
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.