{"id":36994704,"url":"https://github.com/threesquared/laravel-wp-api","last_synced_at":"2026-01-13T23:46:57.936Z","repository":{"id":57069185,"uuid":"47131440","full_name":"threesquared/laravel-wp-api","owner":"threesquared","description":"Laravel package for the Wordpress JSON REST API","archived":false,"fork":true,"pushed_at":"2020-05-31T20:33:28.000Z","size":18,"stargazers_count":13,"open_issues_count":2,"forks_count":15,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-11-27T16:37:12.047Z","etag":null,"topics":["laravel","laravel-5-package","wordpress","wp-api"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"Cyber-Duck/laravel-wp-api","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/threesquared.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":"2015-11-30T16:29:45.000Z","updated_at":"2022-02-15T20:22:12.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/threesquared/laravel-wp-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/threesquared/laravel-wp-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/threesquared%2Flaravel-wp-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/threesquared%2Flaravel-wp-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/threesquared%2Flaravel-wp-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/threesquared%2Flaravel-wp-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/threesquared","download_url":"https://codeload.github.com/threesquared/laravel-wp-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/threesquared%2Flaravel-wp-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28405304,"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":["laravel","laravel-5-package","wordpress","wp-api"],"created_at":"2026-01-13T23:46:57.872Z","updated_at":"2026-01-13T23:46:57.922Z","avatar_url":"https://github.com/threesquared.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# laravel-wp-api\n\n[![Build Status](https://travis-ci.org/threesquared/laravel-wp-api.svg?branch=master)](https://travis-ci.org/threesquared/laravel-wp-api) [![Latest Stable Version](https://poser.pugx.org/threesquared/laravel-wp-api/v/stable)](https://packagist.org/packages/threesquared/laravel-wp-api)\n\nLaravel 5 package for the [Wordpress JSON REST API](https://github.com/WP-API/WP-API)\n\n## Install\n\nSimply add the following line to your `composer.json` and run install/update:\n\n    \"threesquared/laravel-wp-api\": \"~2.0\"\n\n## Configuration\n\nYou will need to add the service provider and optionally the facade alias to your `config/app.php`:\n\n```php\n'providers' =\u003e array(\n  Threesquared\\LaravelWpApi\\LaravelWpApiServiceProvider::class\n)\n\n'aliases' =\u003e array(\n  'WpApi' =\u003e Threesquared\\LaravelWpApi\\Facades\\WpApi::class\n),\n```\n\nAnd publish the package config files to configure the location of your Wordpress install:\n\n    php artisan vendor:publish\n\n### Usage\n\nThe package provides a simplified interface to some of the existing api methods documented [here](http://wp-api.org/).\nYou can either use the Facade provided or inject the `Threesquared\\LaravelWpApi\\WpApi` class.\n\n#### Posts\n```php\nWpApi::posts($page);\n\n```\n\n#### Pages\n```php\nWpApi::pages($page);\n\n```\n\n#### Post\n```php\nWpApi::post($slug);\n\n```\n\n```php\nWpApi::postId($id);\n\n```\n\n#### Categories\n```php\nWpApi::categories();\n\n```\n\n#### Tags\n```php\nWpApi::tags();\n\n```\n\n#### Category posts\n```php\nWpApi::categoryPosts($slug, $page);\n\n```\n\n#### Author posts\n```php\nWpApi::authorPosts($slug, $page);\n\n```\n\n#### Tag posts\n```php\nWpApi::tagPosts($slug, $page);\n\n```\n\n#### Search\n```php\nWpApi::search($query, $page);\n\n```\n\n#### Archive\n```php\nWpApi::archive($year, $month, $page);\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthreesquared%2Flaravel-wp-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthreesquared%2Flaravel-wp-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthreesquared%2Flaravel-wp-api/lists"}