{"id":23183665,"url":"https://github.com/tak-pesar/tron","last_synced_at":"2025-08-18T15:32:00.305Z","repository":{"id":196699390,"uuid":"696943749","full_name":"Tak-Pesar/Tron","owner":"Tak-Pesar","description":"Tron ( TRX ) crypto currency API","archived":false,"fork":false,"pushed_at":"2024-09-02T18:42:59.000Z","size":1073,"stargazers_count":10,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-12-01T00:31:34.083Z","etag":null,"topics":["api","phar","php","tron","tron-api","tron-rest","tron-web","trx"],"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/Tak-Pesar.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-09-26T18:23:16.000Z","updated_at":"2024-09-26T20:22:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"5cf425c0-4e27-4ad8-91d6-21857349e70c","html_url":"https://github.com/Tak-Pesar/Tron","commit_stats":null,"previous_names":["tak-pesar/tron"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tak-Pesar%2FTron","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tak-Pesar%2FTron/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tak-Pesar%2FTron/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tak-Pesar%2FTron/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Tak-Pesar","download_url":"https://codeload.github.com/Tak-Pesar/Tron/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230245301,"owners_count":18196134,"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","phar","php","tron","tron-api","tron-rest","tron-web","trx"],"created_at":"2024-12-18T09:13:54.263Z","updated_at":"2025-08-18T15:32:00.281Z","avatar_url":"https://github.com/Tak-Pesar.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tak-Pesar/Tron\nTron ( TRX ) crypto currency API !\nThis library facilitates connectivity to the Tron network, enabling you to generate a personalized wallet address. This is achieved through utilization of the Tron API.\n\n## Installation\n```bash\ncomposer require takpesar/tron\n```\n\n## Requirements\n\nThis package requires PHP 8 or later. BCMath and Curl extensions require this package\n\n## Usage\n\n```php\n\u003c?php\n\nrequire __DIR__ . '/vendor/autoload.php';\n\nuse Tak\\Tron\\API;\n\n$tron = new API();\n\n$address = $tron-\u003egenerateAddress();\n\nvar_dump($address);\n\n$tron = new API(privatekey : $address-\u003eprivatekey,wallet : $address-\u003ewallet);\n\n$balance = $tron-\u003egetBalance();\nprint 'your balance : '.$balance;\nprint PHP_EOL;\n\ntry {\n\t$send = $tron-\u003esendTron(to : 'TJZfm2PSQ38WNwzPqSBpTbVAynZpMEmfKR',amount : 10.5);\n\tprint 'transaction : '.var_export($send,true);\n} catch(Throwable $e){\n\tprint 'transaction error : '.$e-\u003egetMessage();\n}\n```\n\n## Use Phar _( Faster and easier ! )_\n\n```php\n\u003c?php\n\n$path = __DIR__.DIRECTORY_SEPARATOR.'trx.phar';\n\nif(file_exists($path) === false) copy('https://tron.phar.fun/tron.phar',$path);\n\nrequire_once $path;\n\nuse Tak\\Tron\\API;\n\n$tron = new API();\n\n$address = $tron-\u003egenerateAddress();\n\nvar_dump($address);\n```\n\n\u003e **Note**\n\u003e Please see [`examples`](./example) for more examples\n\n## Issues\n\nShould you encounter any issues, please do not hesitate to reach out to us via email at [`loser.man.2007@gmail.com`](mailto:loser.man.2007@gmail.com).\n\n## License\n\nThe MIT License (MIT). Please see [`LICENSE`](./LICENSE) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftak-pesar%2Ftron","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftak-pesar%2Ftron","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftak-pesar%2Ftron/lists"}