{"id":17989500,"url":"https://github.com/evilfreelancer/samp-api-php","last_synced_at":"2025-10-08T21:04:19.548Z","repository":{"id":56980250,"uuid":"255399234","full_name":"EvilFreelancer/samp-api-php","owner":"EvilFreelancer","description":"GTA San Andreas Multiplayer PHP client for work with remote console","archived":false,"fork":false,"pushed_at":"2020-04-13T22:38:16.000Z","size":7,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-09T15:15:34.514Z","etag":null,"topics":["api-client","samp","samp-client","socket-client","udp-client"],"latest_commit_sha":null,"homepage":null,"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/EvilFreelancer.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":"2020-04-13T17:39:52.000Z","updated_at":"2024-10-19T17:54:04.000Z","dependencies_parsed_at":"2022-08-21T08:40:48.655Z","dependency_job_id":null,"html_url":"https://github.com/EvilFreelancer/samp-api-php","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EvilFreelancer%2Fsamp-api-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EvilFreelancer%2Fsamp-api-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EvilFreelancer%2Fsamp-api-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EvilFreelancer%2Fsamp-api-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EvilFreelancer","download_url":"https://codeload.github.com/EvilFreelancer/samp-api-php/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247117749,"owners_count":20886439,"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-client","samp","samp-client","socket-client","udp-client"],"created_at":"2024-10-29T19:14:50.116Z","updated_at":"2025-10-08T21:04:19.455Z","avatar_url":"https://github.com/EvilFreelancer.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SAMP API PHP client\n\nSimple PHP client for San Andreas Multiplayer server for\nexecuting commands on remote console.\n\n    composer require evilfreelancer/samp-api-php\n\n## How to use\n\n```php\n\u003c?php\nrequire_once __DIR__ . '/../vendor/autoload.php';\n\n$config = new \\SampApi\\Config([\n    'server'   =\u003e 'localhost',\n    'port'     =\u003e '7777',\n    'password' =\u003e '12345',\n]);\n$client = new \\SampApi\\Rcon($config);\n\n// Get list of vars (only this method is ready for right now)\n$response = $client-\u003egetVarlist();\ndump($response);\n\n// Another way\n$response = $client-\u003esend('varlist');\ndump($response);\n\n// Yet another way, OOP style\n$client-\u003eresponseModel = true;\n$response = $client-\u003egetVarlist();\ndump($response);\n\n```\n\nList of all available commands can be found [here](https://wiki.sa-mp.com/wiki/RCON#RCON_Commands).\n\n## Links\n\nDocumentation and some important links\n\n* https://wiki.sa-mp.com/wiki/User:Westie/stuff/Query_Mechanism\n* https://www.sa-mp.com/\n\nAlternatives\n\n* https://forum.sa-mp.com/showthread.php?t=104299\n* https://github.com/Mielnik/samp-api\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevilfreelancer%2Fsamp-api-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fevilfreelancer%2Fsamp-api-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevilfreelancer%2Fsamp-api-php/lists"}