{"id":36988148,"url":"https://github.com/samayamx/embed-extractor","last_synced_at":"2026-01-13T23:24:40.944Z","repository":{"id":56017430,"uuid":"269444723","full_name":"samayamx/embed-extractor","owner":"samayamx","description":"prototipo para extraer propiedades oembed y opengraph para embed de URL","archived":false,"fork":false,"pushed_at":"2021-02-10T01:34:12.000Z","size":31,"stargazers_count":0,"open_issues_count":2,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-01-13T22:40:08.742Z","etag":null,"topics":["oembed","opengraph"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/samayamx.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-06-04T19:16:33.000Z","updated_at":"2021-02-09T22:23:23.000Z","dependencies_parsed_at":"2022-08-15T11:31:09.127Z","dependency_job_id":null,"html_url":"https://github.com/samayamx/embed-extractor","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/samayamx/embed-extractor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samayamx%2Fembed-extractor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samayamx%2Fembed-extractor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samayamx%2Fembed-extractor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samayamx%2Fembed-extractor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/samayamx","download_url":"https://codeload.github.com/samayamx/embed-extractor/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samayamx%2Fembed-extractor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28405200,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T21:51:37.118Z","status":"ssl_error","status_checked_at":"2026-01-13T21:45:14.585Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["oembed","opengraph"],"created_at":"2026-01-13T23:24:40.448Z","updated_at":"2026-01-13T23:24:40.937Z","avatar_url":"https://github.com/samayamx.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Embed Extractor\n\nSimple class to extract properties for embedding 3rd party resources supporting OEmbed protocol.\n\n_Currently we support only resources with [Discovery](https://oembed.com/#section4) links_\n\n### installation\n\n    composer require samayamx/embed-extractor\n    \n### requirements\n\n- cURL to get resources\n- ext-json to extract data from oembed response\n\n### example\n\nYou can use this simple service in a controller without too much hassle:\n\n```php\nuse Samaya\\Embed\\Extract;\n\n$extractor = new Extract(\n    'User-Agent-Cool',\n    '1234567890123456',\n    '0123456789abcdef0123456789abcdef'\n);\n\nRoute::get('/embed', function (Request $request) use ($extractor) {\n    $url = $request-\u003eget('url');\n    try {\n        $image = $extractor-\u003egetImage($url);\n        $html = $extractor-\u003egetHtml($url);\n\n        return response()-\u003ejson(compact('url', 'html', 'image'));\n    } catch (\\DomainException $domainException) {\n        // for Facebook \"OpenGraph\" errors\n        return response()-\u003ejson(\n          ['message' =\u003e $domainException-\u003egetMessage()],\n          $domainException-\u003egetCode()\n        );\n    } catch (\\Exception $exception) {\n        // handle other exceptions as well\n        return response(\n          $exception-\u003egetMessage(),\n          $exception-\u003egetCode()\n        );\n    }\n});\n```\n\nIf you prefer, you can use the provided Laravel facade or configuration\nto provide the service with required parameters:\n\n```php\nuse Samaya\\Embed\\Extract;\n\n// injected into the action handler:\nRoute::get('/embed', function (Extract $extractor, Request $request) {\n    // ...\n});\n\nuse Samaya\\Embed\\OEmbedExtract;\n\n// using the facade\n$image = OEmbedExtract::getImage($url);\n$html = OEmbedExtract::getHtml($url);\n```\n\n### configuration with Laravel\n\nTo use the provided facade or automatic service instantiation, you provide\nthe required secrets in environment and/or published configuration.\n\nSee `.env.example` for an example of the default environment variables.\n\nPublish the configuration if you need to tweak the identifiers to avoid\ncollision with another package:\n\n    php artisan vendor:publish --provider=Samaya\\\\Embed\\\\OEmbedExtractProvider --tag=config\n\n### supports\n\n- Facebook\n- Vimeo\n- Youtube\n- Samaya Share\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamayamx%2Fembed-extractor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamayamx%2Fembed-extractor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamayamx%2Fembed-extractor/lists"}