{"id":18496927,"url":"https://github.com/shapecode/fut-api","last_synced_at":"2025-04-09T00:30:29.145Z","repository":{"id":37759315,"uuid":"158721571","full_name":"shapecode/fut-api","owner":"shapecode","description":"Manage your FIFA Ultimate Team with this FIFA 20 WebApp API PHP framework","archived":false,"fork":false,"pushed_at":"2020-11-05T07:41:22.000Z","size":333,"stargazers_count":45,"open_issues_count":12,"forks_count":19,"subscribers_count":17,"default_branch":"master","last_synced_at":"2025-03-23T19:39:08.207Z","etag":null,"topics":["api","bot","fifa","fifa-ultimate-team","fifa19","fut","fut19"],"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/shapecode.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"nicklog","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":"nicklog","issuehunt":null,"otechie":null,"custom":["http://paypal.me/nloges"]}},"created_at":"2018-11-22T15:52:22.000Z","updated_at":"2024-11-01T10:44:03.000Z","dependencies_parsed_at":"2022-08-19T02:12:21.969Z","dependency_job_id":null,"html_url":"https://github.com/shapecode/fut-api","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shapecode%2Ffut-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shapecode%2Ffut-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shapecode%2Ffut-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shapecode%2Ffut-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shapecode","download_url":"https://codeload.github.com/shapecode/fut-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247949635,"owners_count":21023360,"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":["api","bot","fifa","fifa-ultimate-team","fifa19","fut","fut19"],"created_at":"2024-11-06T13:32:35.130Z","updated_at":"2025-04-09T00:30:28.600Z","avatar_url":"https://github.com/shapecode.png","language":"PHP","funding_links":["https://github.com/sponsors/nicklog","https://liberapay.com/nicklog","http://paypal.me/nloges"],"categories":[],"sub_categories":[],"readme":"\u003c!--\n  Title: FIFA 20 WebApp API\n  Description: A simply way to manage your FIFA 20 Ultimate Team with a PHP\n  --\u003e\n\n# FIFA 20 WebApp API\n\nManage your FIFA 20 Ultimate Team using this FIFA 20 Ultimate Team API.\nWritten solely in PHP\n\n[![paypal](https://img.shields.io/badge/Donate-Paypal-blue.svg)](http://paypal.me/nloges)\n\n[![PHP Version](https://img.shields.io/packagist/php-v/shapecode/fut-api.svg)](https://packagist.org/packages/shapecode/fut-api)\n[![Latest Stable Version](https://img.shields.io/packagist/v/shapecode/fut-api.svg?label=stable)](https://packagist.org/packages/shapecode/fut-api)\n[![Latest Unstable Version](https://img.shields.io/packagist/vpre/shapecode/fut-api.svg?label=unstable)](https://packagist.org/packages/shapecode/fut-api)\n[![Total Downloads](https://img.shields.io/packagist/dt/shapecode/fut-api.svg)](https://packagist.org/packages/shapecode/fut-api)\n[![Monthly Downloads](https://img.shields.io/packagist/dm/shapecode/fut-api.svg?label=monthly)](https://packagist.org/packages/shapecode/fut-api)\n[![Daily Downloads](https://img.shields.io/packagist/dd/shapecode/fut-api.svg?label=daily)](https://packagist.org/packages/shapecode/fut-api)\n[![License](https://img.shields.io/packagist/l/shapecode/fut-api.svg)](https://packagist.org/packages/shapecode/fut-api)\n\n\n## Installing\n\nThe recommended way to install FIFA 20 WebApp API is through\n[Composer](http://getcomposer.org).\n\n```bash\ncomposer require shapecode/fut-api \"~20.0@dev\"\n```\n\n## Contribute\n\nDon't be shy. Feel free to contribute and create pull-requests. There's a lot to do.\n\n## Usage\n\n### Login\n\nLogin parameters:\n\n- email: [string] email used for logging into the FIFA 20 WebApp\n- password: [string] password used for logging into the FIFA 20 WebApp\n- platform: [string] pc/ps4/ps4/xbox/xbox360\n- code: [string] email code for two-step verification (make sure to use string if your code starts with 0).\n\n```php\nuse FUTApi\\Api\\Core;\nuse FUTApi\\Exception\\FutError;\nuse FUTApi\\Api\\Authentication\\Account;\nuse FUTApi\\Api\\Authentication\\Credentials;\nuse FUTApi\\Api\\Authentication\\Session;\n\n$credentials = new Credentials($email, $password, $platform);\n\n// if you already have a valid session\n$session = new Session($persona, $nucleus, $phishing, $session, $dob, $accessToken, $tokenType);\n\n// otherwise\n$session = null;\n\n$account = new Account($credentials, $session);\n$fut = new Core($account);\n\ntry {\n    $login = $fut-\u003elogin($code);\n    $session = $account-\u003egetSession();\n} catch(FutError $e) {\n    $reason = $e-\u003egetReason();\n    die(\"We have an error logging in: \".$reason);\n}\n```\n\nAfter you have initiated your first session, you can then use the API wthout logging in again using the session info.\n\n    \n### Search\n\nOptional parameters:\n\n- min_price: [int] Minimal price.\n- max_price: [int] Maximum price.\n- min_buy: [int] Minimal buy now price.\n- max_buy: [int] Maximum buy now price.\n- level: ['bronze'/'silver'/gold'] Card level.\n- start: [int] Start page number.\n- category: ['fitness'/'?'] Card category.\n- assetId: [int] assetId.\n- defId: [int] defId.\n- league: [int] League id.\n- club: [int] Club id.\n- position: [int?/str?] Position.\n- zone: ['attacker'/'?'] zone.\n- nationality: [int] Nation id.\n- rare: [boolean] True for searching special cards.\n- playStyle: [str?] playStyle.\n- page_size: [int] Amount of cards on single page (changing this might be risky).\n\n```php\n$options = [];\n$items = $fut-\u003esearch($options);\n```\n    \n### Logout\n\nReplicates clicking the Logout button.\n\n```php\n$fut-\u003elogout();\n```\n\n\n## License\n\nGNU GPLv3\n\n##### Forked\n\nhttps://github.com/InkedCurtis/FUT-API\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshapecode%2Ffut-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshapecode%2Ffut-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshapecode%2Ffut-api/lists"}