{"id":16674572,"url":"https://github.com/settermjd/freeagentapi","last_synced_at":"2026-04-20T20:04:09.503Z","repository":{"id":25759785,"uuid":"29197845","full_name":"settermjd/FreeAgentApi","owner":"settermjd","description":"A simple repository showing how to interact with the FreeAgentAPI with PHP","archived":false,"fork":false,"pushed_at":"2015-01-16T07:00:13.000Z","size":433,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-27T05:56:05.184Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/settermjd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-01-13T15:59:51.000Z","updated_at":"2015-01-25T00:42:50.000Z","dependencies_parsed_at":"2022-07-12T16:08:14.703Z","dependency_job_id":null,"html_url":"https://github.com/settermjd/FreeAgentApi","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/settermjd/FreeAgentApi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/settermjd%2FFreeAgentApi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/settermjd%2FFreeAgentApi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/settermjd%2FFreeAgentApi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/settermjd%2FFreeAgentApi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/settermjd","download_url":"https://codeload.github.com/settermjd/FreeAgentApi/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/settermjd%2FFreeAgentApi/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32063459,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T11:35:06.609Z","status":"ssl_error","status_checked_at":"2026-04-20T11:34:48.899Z","response_time":94,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":[],"created_at":"2024-10-12T12:43:33.975Z","updated_at":"2026-04-20T20:04:09.470Z","avatar_url":"https://github.com/settermjd.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FreeAgentApi\n\nA simple repository showing how to interact with the FreeAgentAPI with PHP\n=======\n\nThis is a simple repository, designed for use with the January 2015 edition of [PHP Architect]\n(http://phparch.com) magazine’s Education Station column, showing how to interact with the \nFreeAgentAPI using PHP.\n\n## Getting Started\n\nTo get started using this repository, you need to have both a [developer](http://dev.freeagent.com) \nand [normal](http://www.freeagent.com) account with FreeAgent. Once you’ve got those setup, \nthen you need to create an application. The details aren’t really important, but you’ll need to \ncopy the identity and secret values to the respective constants in `src/FreeAgentApi.php`, which \nyou can see below.\n\n![App Settings](docs/images/app-settings.png)\n\nFollowing that, from the root of the project, run `composer update` to pull in the dependencies, \nwhich you can find in composer.json.\n\n## Running The Application\n\nTo run the application, the simplest way is to use PHP’s built-in webserver by using the following \ncommand from the root directory:\n\n```\nphp -S localhost:8080 -t .\n```\n\nThen, in your browser of choice, navigate to `http://localhost:8080`. You’ll then be prompted to \nenter your username and password to allow the app access to your account. \n\n![Enter Credentials](docs/images/enter-credentials.png)\n\nEnter the credentials of your normal (non-developer) account. Following that, allow the app access.\n \n![Approve Access](docs/images/approve-access.png)\n\nAssuming that authentication works, you’ll then be redirected back to the application. The access\ncode will be appended to the query string. Currently you need to manually update the URL to navigate\nbetween the various routes. \n\nIn a future update this may be changed so that the code is stored in \nsession and a parent template provides links to the various routes. But for now, that’s not available.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsettermjd%2Ffreeagentapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsettermjd%2Ffreeagentapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsettermjd%2Ffreeagentapi/lists"}