{"id":18552084,"url":"https://github.com/baraja-core/wayback","last_synced_at":"2025-10-06T03:24:27.297Z","repository":{"id":62491753,"uuid":"405891911","full_name":"baraja-core/wayback","owner":"baraja-core","description":"Simple wayback interface for archive.org.","archived":false,"fork":false,"pushed_at":"2022-09-12T07:44:26.000Z","size":19,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T13:11:09.072Z","etag":null,"topics":["archive","archive-url","backup","url","wayback","wayback-machine","waybackmachine"],"latest_commit_sha":null,"homepage":"","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/baraja-core.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":"2021-09-13T08:26:23.000Z","updated_at":"2022-03-12T10:24:05.000Z","dependencies_parsed_at":"2022-11-02T11:03:37.213Z","dependency_job_id":null,"html_url":"https://github.com/baraja-core/wayback","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":"baraja-core/template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baraja-core%2Fwayback","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baraja-core%2Fwayback/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baraja-core%2Fwayback/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baraja-core%2Fwayback/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/baraja-core","download_url":"https://codeload.github.com/baraja-core/wayback/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248123719,"owners_count":21051518,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["archive","archive-url","backup","url","wayback","wayback-machine","waybackmachine"],"created_at":"2024-11-06T21:12:46.991Z","updated_at":"2025-10-06T03:24:22.266Z","avatar_url":"https://github.com/baraja-core.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Wayback machine API\n===================\n\nSimple wayback interface for archive.org.\n\n📦 Installation \u0026 Basic Usage\n-----------------------------\n\nTo install the package call Composer and execute the following command:\n\n```shell\n$ composer require baraja-core/wayback\n```\n\nNo configuration is needed, the package will take care of the dependencies itself. The use of DIC is not required. The cache is automatically stored on the filesystem.\n\nHow to use\n----------\n\nSimply create instance of Wayback and call methods:\n\n```php\n$wayback = new Wayback;\n\n// Return list of available archives by host\n$wayback-\u003egetArchivedUrlsByHost('baraja.cz');\n\n// Return list of available archives by URL (http/https and www will be ignored)\n$wayback-\u003egetArchivedUrls('https://php.baraja.cz/navody');\n\n// Return list of crawled subdomains (for large sites can not be complete)\n$wayback-\u003egetSubdomains('baraja.cz');\n\n// Save now given URL to Wayback\n$wayback-\u003esaveUrl('https://baraja.cz');\n\n// Find nearest archived datetime\n$wayback-\u003egetClosedArchivedDateTime('https://baraja.cz/robots.txt', new \\DateTime('2020-09-04'));\n\n// Find and download nearest archived file\n$wayback-\u003egetClosedArchivedFile('https://baraja.cz/robots.txt', new \\DateTime('2020-09-04'));\n\n// Download specific file by wayback link\n$wayback-\u003egetArchivedFile('http://web.archive.org/web/20200923184117/https://baraja.cz/robots.txt');\n```\n\nThe return of all results from the Wayback Machine is subject to caching. The results are automatically cached on your file system.\n\nDateTime\n--------\n\nDateTime is stored in Wayback format (string). Wayback stores the date in the UTC timezone. This package converts datetime automatically.\n\nExample: Date `20050101143010` is `2005-01-01 14:30:10`.\n\n📄 License\n-----------\n\n`baraja-core/wayback` is licensed under the MIT license. See the [LICENSE](https://github.com/baraja-core/wayback/blob/master/LICENSE) file for more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbaraja-core%2Fwayback","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbaraja-core%2Fwayback","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbaraja-core%2Fwayback/lists"}