PHPackages                             exinone/mixin-sdk-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. exinone/mixin-sdk-php

ActiveLibrary[API Development](/categories/api)

exinone/mixin-sdk-php
=====================

Mixin-Network SDK for PHP, modify from ExinOne/laravel-mixin-sdk

1.7.1(1mo ago)242.5k11[1 PRs](https://github.com/ExinOne/mixin-sdk-php/pulls)3MITPHPPHP ^7.2 || ^8.0CI failing

Since Dec 4Pushed 1mo ago8 watchersCompare

[ Source](https://github.com/ExinOne/mixin-sdk-php)[ Packagist](https://packagist.org/packages/exinone/mixin-sdk-php)[ RSS](/packages/exinone-mixin-sdk-php/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (10)Dependencies (22)Versions (117)Used By (3)

Mixin-SDK-PHP
=============

[](#mixin-sdk-php)

[![](https://camo.githubusercontent.com/be62d621b7c371288c3ae00270078b3a5661bcebdca6d1c6485c12e7cc6c8482/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4d6978696e2d4e6574776f726b2d3239393566322e7376673f7374796c653d666f722d7468652d626164676526636f6c6f72413d316363326664266c6f6e6743616368653d74727565266c6f676f3d646174613a696d6167652f7376672b786d6c3b6261736536342c50484e325a7942325a584a7a61573975505349784c6a456949476c6b50534a4d59586c6c636c38784969423462577875637a30696148523063446f764c336433647935334d793576636d63764d6a41774d43397a646d6369494868746247357a4f6e68736157357250534a6f644852774f693876643364334c6e637a4c6d39795a7938784f546b354c3368736157357249694234505349776348676949486b39496a427765434967646d6c6c64304a76654430694d434177494449304e5341794e44416949484e306557786c50534a6c626d466962475574596d466a61326479623356755a4470755a5863674d434177494449304e5341794e44413749694234625777366333426859325539496e42795a584e6c636e5a6c496a344b50484e306557786c4948523563475539496e526c6548517659334e7a496a344b4353357a644442375a6d6c7362446f6a526b5a47526b5a474f33304b5043397a64486c735a54344b5047632b43676b385a7a344b43516b38634746306143426a6247467a637a3069633351774969426b50534a4e4d6a49334c6a45734d7a4d754d3277744d7a59754d7977784e693478597930794c6a49734d5334794c544d754e53777a4c6a55744d7934314c4455754f5859784d6a6b754f474d774c4449754e5377784c6a51734e4334344c444d754e6977314c6a6c734d7a59754d7977784e533433597a49754d7977784c6a49734e5330774c6a51734e53307a4a694d784d44736d497a6b374a694d354f79596a4f5474574d7a59754d304d794d7a49754d53777a4d7934334c4449794f53347a4c444d794c6a45734d6a49334c6a45734d7a4d754d336f675454557a4c6a4d734e446b754d6d77744d7a55754d6930784e6d4d744d69347a4c5445754d6930314c4441754e4330314c444e324d5459334c6a526a4d4377794c6a63734d7977304c6a4d734e5334794c4449754f57777a4e5334304c5445344c6a636d497a45774f79596a4f54736d497a6b374a694d354f324d794c5445754d69777a4c6a49744d7934304c444d754d6930314c6a64324c5445794e304d314e6934344c4455794c6a63734e5455754e5377314d4334304c44557a4c6a4d734e446b754d6e6f67545445324d7934334c446b7a4c6a56734c544d334c6a6b744d6a45754e324d744d6934784c5445754d6930304c6a63744d5334794c5459754e797777544467774c6a55734f544d754d79596a4d5441374a694d354f79596a4f54736d497a6b37597930794c6a45734d5334794c544d754e43777a4c6a55744d7934304c4455754f5859304e474d774c4449754e4377784c6a4d734e4334334c444d754e4377314c6a6c734d7a67754e6977794d693479597a49754d5377784c6a49734e4334334c4445754d6977324c6a63734d47777a4e7934354c544979597a49754d5330784c6a49734d7934304c544d754e53777a4c6a51744e533435646930304e43596a4d5441374a694d354f79596a4f54736d497a6b37517a45324e7934784c446b324c6a6b734d5459314c6a67734f5451754e7977784e6a4d754e7977354d7934316569497650676f4a5043396e50676f384c32632b436a777663335a6e50673d3d)](https://camo.githubusercontent.com/be62d621b7c371288c3ae00270078b3a5661bcebdca6d1c6485c12e7cc6c8482/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4d6978696e2d4e6574776f726b2d3239393566322e7376673f7374796c653d666f722d7468652d626164676526636f6c6f72413d316363326664266c6f6e6743616368653d74727565266c6f676f3d646174613a696d6167652f7376672b786d6c3b6261736536342c50484e325a7942325a584a7a61573975505349784c6a456949476c6b50534a4d59586c6c636c38784969423462577875637a30696148523063446f764c336433647935334d793576636d63764d6a41774d43397a646d6369494868746247357a4f6e68736157357250534a6f644852774f693876643364334c6e637a4c6d39795a7938784f546b354c3368736157357249694234505349776348676949486b39496a427765434967646d6c6c64304a76654430694d434177494449304e5341794e44416949484e306557786c50534a6c626d466962475574596d466a61326479623356755a4470755a5863674d434177494449304e5341794e44413749694234625777366333426859325539496e42795a584e6c636e5a6c496a344b50484e306557786c4948523563475539496e526c6548517659334e7a496a344b4353357a644442375a6d6c7362446f6a526b5a47526b5a474f33304b5043397a64486c735a54344b5047632b43676b385a7a344b43516b38634746306143426a6247467a637a3069633351774969426b50534a4e4d6a49334c6a45734d7a4d754d3277744d7a59754d7977784e693478597930794c6a49734d5334794c544d754e53777a4c6a55744d7934314c4455754f5859784d6a6b754f474d774c4449754e5377784c6a51734e4334344c444d754e6977314c6a6c734d7a59754d7977784e533433597a49754d7977784c6a49734e5330774c6a51734e53307a4a694d784d44736d497a6b374a694d354f79596a4f5474574d7a59754d304d794d7a49754d53777a4d7934334c4449794f53347a4c444d794c6a45734d6a49334c6a45734d7a4d754d336f675454557a4c6a4d734e446b754d6d77744d7a55754d6930784e6d4d744d69347a4c5445754d6930314c4441754e4330314c444e324d5459334c6a526a4d4377794c6a63734d7977304c6a4d734e5334794c4449754f57777a4e5334304c5445344c6a636d497a45774f79596a4f54736d497a6b374a694d354f324d794c5445754d69777a4c6a49744d7934304c444d754d6930314c6a64324c5445794e304d314e6934344c4455794c6a63734e5455754e5377314d4334304c44557a4c6a4d734e446b754d6e6f67545445324d7934334c446b7a4c6a56734c544d334c6a6b744d6a45754e324d744d6934784c5445754d6930304c6a63744d5334794c5459754e797777544467774c6a55734f544d754d79596a4d5441374a694d354f79596a4f54736d497a6b37597930794c6a45734d5334794c544d754e43777a4c6a55744d7934304c4455754f5859304e474d774c4449754e4377784c6a4d734e4334334c444d754e4377314c6a6c734d7a67754e6977794d693479597a49754d5377784c6a49734e4334334c4445754d6977324c6a63734d47777a4e7934354c544979597a49754d5330784c6a49734d7934304c544d754e53777a4c6a51744e533435646930304e43596a4d5441374a694d354f79596a4f54736d497a6b37517a45324e7934784c446b324c6a6b734d5459314c6a67734f5451754e7977784e6a4d754e7977354d7934316569497650676f4a5043396e50676f384c32632b436a777663335a6e50673d3d)[![](https://camo.githubusercontent.com/66916aeb6c5634050377304faefbd6130832be611e61bf8db8cd966f8cb415ee/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4578696e4f6e652d3333333333332e7376673f7374796c653d666f722d7468652d6261646765266c6f6e6743616368653d74727565266c6f676f3d646174613a696d6167652f7376672b786d6c3b6261736536342c50484e325a79423361575230614430694d5455784c6a63334969426f5a576c6e61485139496a45314d5334334e79496765473173626e4d39496d6830644841364c79393364336375647a4d7562334a6e4c7a49774d44417663335a6e496a344b4944786b5a575a7a50676f674944787a64486c735a5434755932787a4c5446375a6d6c7362446f6a5a6d5a6d4f3330384c334e306557786c50676f675043396b5a575a7a50676f67504852706447786c506a493150433930615852735a54344b4944786e50676f6749447830615852735a54356959574e725a334a766457356b50433930615852735a54344b49434138636d566a6443426d6157787350534a756232356c496942705a44306959324675646d467a58324a685932746e636d3931626d51694947686c6157646f644430694d54557a4c6a63334969423361575230614430694d54557a4c6a633349694235505349744d534967654430694c5445694c7a344b494477765a7a344b4944786e50676f6749447830615852735a54354d59586c6c6369417850433930615852735a54344b4943413863474630614342705a44306963335a6e587a456949475139496d30784d5445754e5463324f444d344c4445304c6a55344d5463794e324d744f43347a4e7977784c6a5130494330784d4334334e6977334c6a4d34494330784e5334344f5377784d79347a4e6d45354c6a63324c446b754e7a59674d434177494445674c5463754e4445734d79347a4e5777744d4334344e79777759546b754e7a63734f5334334e794177494441674d5341744e7934304d5377744d79347a4e574d744e5334784d7977744e6941744e7934314d6977744d5445754f5449674c5445314c6a67354c4330784d79347a4e6d4d744d5441754f4451734c5445754f4459674c5449784c6a557a4c4455754e4445674c5449794c6a55344c4445324c6a4d31595445344c6a55784c4445344c6a5578494441674d434177494445344c6a51794c4449774c6a4d30597a45794c4441674d5451754d6a49734c5459754d4463674d6a41754d6a67734c54457a4c6a513059546b754f4459734f5334344e694177494441674d5341334c6a59794c43307a4c6a5a734d43777759546b754f4455734f5334344e534177494441674d5341334c6a59784c444d754e6d4d324c6a41324c4463754d7a63674f4334794e6977784d7934304e4341794d4334794f4377784d7934304e4745784f4334314d5377784f4334314d534177494441674d4341784f4334304d6977744d6a41754d7a526a4c5445754d4455734c5445774c6a6b30494330784d5334334e4377744d5467754d6a45674c5449794c6a55344c4330784e69347a4e586f6949474e7359584e7a50534a6a62484d744d53497650676f67494478775958526f49476c6b50534a7a646d64664d6949675a4430696254677a4c6a67784e6a677a4f4377314f4334304e6a45334d6a646a4c5467754d7a63734d5334304d7941744d5441754e7a59734e79347a4e7941744d5455754f5377784d79347a4e6d45354c6a63304c446b754e7a51674d434177494445674c5463754e43777a4c6a4d31624330774c6a67324c4442684f5334334e6977354c6a6332494441674d434178494330334c6a51784c43307a4c6a4d31597930314c6a457a4c433032494330334c6a557a4c4330784d5334354d7941744d5455754f5377744d544d754d7a5a6a4c5445774c6a67304c4330784c6a6732494330794d5334314e4377314c6a51674c5449794c6a55354c4445324c6a4d30595445344c6a55784c4445344c6a5578494441674d434177494445344c6a51794c4449774c6a4e6a4d5449734d4341784e4334794d7977744e6934774e6941794d4334794f4377744d544d754e4452684f5334354c446b754f534177494441674d5341334c6a59794c43307a4c6a5a734d43777759546b754f446b734f5334344f534177494441674d5341334c6a59794c444d754e6d4d324c6a41324c4463754e4451674f4334794e6977784d7934304e4341794d4334794f4377784d7934304e4745784f4334314d5377784f4334314d534177494441674d4341784f4334304d6977744d6a41754d7a526a4c5445754d4455734c5445774c6a6b674c5445784c6a63304c4330784f4334784e6941744d6a49754e5467734c5445324c6a4e364969426a6247467a637a30695932787a4c5445694c7a344b4943413863474630614342705a44306963335a6e587a4d6949475139496d30784d5445754e7a51324f444d344c4445774d5334334d7a45334d6a646a4c5467754d7a63734d5334304e4341744d5441754e7a63734e79347a4f4341744d5455754f5377784d79347a4e6d45354c6a63784c446b754e7a45674d434177494445674c5463754e43777a4c6a4d32624330774c6a67344c4442684f5334334d5377354c6a6378494441674d434178494330334c6a51734c544d754d7a5a6a4c5455754d5451734c5459674c5463754e544d734c5445784c6a6b79494330784e5334354c4330784d79347a4e6d4d744d5441754f444d734c5445754f4459674c5449784c6a557a4c4455754d7a63674c5449794c6a59784c4445324c6a4d33595445344c6a55784c4445344c6a5578494441674d434177494445344c6a51794c4449774c6a4d30597a45794c4441674d5451754d6a49734c5459754d4463674d6a41754d6a67734c54457a4c6a513059546b754f446b734f5334344f534177494441674d5341334c6a59794c43307a4c6a5a734d43777759546b754f5377354c6a6b674d434177494445674e7934324d69777a4c6a5a6a4e6934774e6977334c6a4d33494467754d6a59734d544d754e4451674d6a41754d6a67734d544d754e4452684d5467754e5445734d5467754e5445674d434177494441674d5467754e4455734c5449774c6a4d30597930784c6a41314c4330784d5341744d5445754e7a55734c5445344c6a497a494330794d6934314f4377744d5459754d7a64364969426a6247467a637a30695932787a4c5445694c7a344b494477765a7a344b5043397a646d632b)](https://camo.githubusercontent.com/66916aeb6c5634050377304faefbd6130832be611e61bf8db8cd966f8cb415ee/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4578696e4f6e652d3333333333332e7376673f7374796c653d666f722d7468652d6261646765266c6f6e6743616368653d74727565266c6f676f3d646174613a696d6167652f7376672b786d6c3b6261736536342c50484e325a79423361575230614430694d5455784c6a63334969426f5a576c6e61485139496a45314d5334334e79496765473173626e4d39496d6830644841364c79393364336375647a4d7562334a6e4c7a49774d44417663335a6e496a344b4944786b5a575a7a50676f674944787a64486c735a5434755932787a4c5446375a6d6c7362446f6a5a6d5a6d4f3330384c334e306557786c50676f675043396b5a575a7a50676f67504852706447786c506a493150433930615852735a54344b4944786e50676f6749447830615852735a54356959574e725a334a766457356b50433930615852735a54344b49434138636d566a6443426d6157787350534a756232356c496942705a44306959324675646d467a58324a685932746e636d3931626d51694947686c6157646f644430694d54557a4c6a63334969423361575230614430694d54557a4c6a633349694235505349744d534967654430694c5445694c7a344b494477765a7a344b4944786e50676f6749447830615852735a54354d59586c6c6369417850433930615852735a54344b4943413863474630614342705a44306963335a6e587a456949475139496d30784d5445754e5463324f444d344c4445304c6a55344d5463794e324d744f43347a4e7977784c6a5130494330784d4334334e6977334c6a4d34494330784e5334344f5377784d79347a4e6d45354c6a63324c446b754e7a59674d434177494445674c5463754e4445734d79347a4e5777744d4334344e79777759546b754e7a63734f5334334e794177494441674d5341744e7934304d5377744d79347a4e574d744e5334784d7977744e6941744e7934314d6977744d5445754f5449674c5445314c6a67354c4330784d79347a4e6d4d744d5441754f4451734c5445754f4459674c5449784c6a557a4c4455754e4445674c5449794c6a55344c4445324c6a4d31595445344c6a55784c4445344c6a5578494441674d434177494445344c6a51794c4449774c6a4d30597a45794c4441674d5451754d6a49734c5459754d4463674d6a41754d6a67734c54457a4c6a513059546b754f4459734f5334344e694177494441674d5341334c6a59794c43307a4c6a5a734d43777759546b754f4455734f5334344e534177494441674d5341334c6a59784c444d754e6d4d324c6a41324c4463754d7a63674f4334794e6977784d7934304e4341794d4334794f4377784d7934304e4745784f4334314d5377784f4334314d534177494441674d4341784f4334304d6977744d6a41754d7a526a4c5445754d4455734c5445774c6a6b30494330784d5334334e4377744d5467754d6a45674c5449794c6a55344c4330784e69347a4e586f6949474e7359584e7a50534a6a62484d744d53497650676f67494478775958526f49476c6b50534a7a646d64664d6949675a4430696254677a4c6a67784e6a677a4f4377314f4334304e6a45334d6a646a4c5467754d7a63734d5334304d7941744d5441754e7a59734e79347a4e7941744d5455754f5377784d79347a4e6d45354c6a63304c446b754e7a51674d434177494445674c5463754e43777a4c6a4d31624330774c6a67324c4442684f5334334e6977354c6a6332494441674d434178494330334c6a51784c43307a4c6a4d31597930314c6a457a4c433032494330334c6a557a4c4330784d5334354d7941744d5455754f5377744d544d754d7a5a6a4c5445774c6a67304c4330784c6a6732494330794d5334314e4377314c6a51674c5449794c6a55354c4445324c6a4d30595445344c6a55784c4445344c6a5578494441674d434177494445344c6a51794c4449774c6a4e6a4d5449734d4341784e4334794d7977744e6934774e6941794d4334794f4377744d544d754e4452684f5334354c446b754f534177494441674d5341334c6a59794c43307a4c6a5a734d43777759546b754f446b734f5334344f534177494441674d5341334c6a59794c444d754e6d4d324c6a41324c4463754e4451674f4334794e6977784d7934304e4341794d4334794f4377784d7934304e4745784f4334314d5377784f4334314d534177494441674d4341784f4334304d6977744d6a41754d7a526a4c5445754d4455734c5445774c6a6b674c5445784c6a63304c4330784f4334784e6941744d6a49754e5467734c5445324c6a4e364969426a6247467a637a30695932787a4c5445694c7a344b4943413863474630614342705a44306963335a6e587a4d6949475139496d30784d5445754e7a51324f444d344c4445774d5334334d7a45334d6a646a4c5467754d7a63734d5334304e4341744d5441754e7a63734e79347a4f4341744d5455754f5377784d79347a4e6d45354c6a63784c446b754e7a45674d434177494445674c5463754e43777a4c6a4d32624330774c6a67344c4442684f5334334d5377354c6a6378494441674d434178494330334c6a51734c544d754d7a5a6a4c5455754d5451734c5459674c5463754e544d734c5445784c6a6b79494330784e5334354c4330784d79347a4e6d4d744d5441754f444d734c5445754f4459674c5449784c6a557a4c4455754d7a63674c5449794c6a59784c4445324c6a4d33595445344c6a55784c4445344c6a5578494441674d434177494445344c6a51794c4449774c6a4d30597a45794c4441674d5451754d6a49734c5459754d4463674d6a41754d6a67734c54457a4c6a513059546b754f446b734f5334344f534177494441674d5341334c6a59794c43307a4c6a5a734d43777759546b754f5377354c6a6b674d434177494445674e7934324d69777a4c6a5a6a4e6934774e6977334c6a4d33494467754d6a59734d544d754e4451674d6a41754d6a67734d544d754e4452684d5467754e5445734d5467754e5445674d434177494441674d5467754e4455734c5449774c6a4d30597930784c6a41314c4330784d5341744d5445754e7a55734c5445344c6a497a494330794d6934314f4377744d5459754d7a64364969426a6247467a637a30695932787a4c5445694c7a344b494477765a7a344b5043397a646d632b)

---

[![](https://camo.githubusercontent.com/5ef3ae6f6ee788daf175cefb1fb26520bc841b962c42ee766904bc474d7d3bd0/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d7e372e302e302d677265656e2e7376673f6c6f6e6743616368653d74727565267374796c653d666c61742d73717561726526636f6c6f72413d333333333333)](https://camo.githubusercontent.com/5ef3ae6f6ee788daf175cefb1fb26520bc841b962c42ee766904bc474d7d3bd0/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d7e372e302e302d677265656e2e7376673f6c6f6e6743616368653d74727565267374796c653d666c61742d73717561726526636f6c6f72413d333333333333)[![](https://camo.githubusercontent.com/f106e3ac7dd19af384e30703f093d0c13e9b7ef8accbdf826d3a067e62121233/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c616e6775616765732f636f64652d73697a652f4578696e4f6e652f6d6978696e2d73646b2d7068702e7376673f7374796c653d666c61742d73717561726526636f6c6f72413d333333333333)](https://camo.githubusercontent.com/f106e3ac7dd19af384e30703f093d0c13e9b7ef8accbdf826d3a067e62121233/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c616e6775616765732f636f64652d73697a652f4578696e4f6e652f6d6978696e2d73646b2d7068702e7376673f7374796c653d666c61742d73717561726526636f6c6f72413d333333333333)[![](https://camo.githubusercontent.com/78f2eff5f281ea06471389f4be866607f21bf97dd9beac08979e87111c4c2157/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f4578696e4f6e652f6d6978696e2d73646b2d7068702e7376673f7374796c653d666c61742d73717561726526636f6c6f72413d333333333333)](https://camo.githubusercontent.com/78f2eff5f281ea06471389f4be866607f21bf97dd9beac08979e87111c4c2157/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f4578696e4f6e652f6d6978696e2d73646b2d7068702e7376673f7374796c653d666c61742d73717561726526636f6c6f72413d333333333333)[![](https://camo.githubusercontent.com/292565510044771b810297341a1d2ca04789c23a5778a59719b8e3269f041d87/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f4578696e4f6e652f6d6978696e2d73646b2d7068702e7376673f7374796c653d666c61742d73717561726526636f6c6f72413d333333333333)](https://camo.githubusercontent.com/292565510044771b810297341a1d2ca04789c23a5778a59719b8e3269f041d87/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f4578696e4f6e652f6d6978696e2d73646b2d7068702e7376673f7374796c653d666c61742d73717561726526636f6c6f72413d333333333333)[![](https://camo.githubusercontent.com/42447381eda510020bf7ad6bf79436e7adbf8d781f4a6f05bb3d040dfe67588f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c616e67756167652d2545342542382541442545362539362538372545362539362538372545362541312541332d3333333333332e7376673f6c6f6e6743616368653d74727565267374796c653d666c61742d73717561726526636f6c6f72413d453632423145)](readme-cn.md)

Mixin-Network SDK for PHP

Requirement
-----------

[](#requirement)

1. `Composer`
2. `PHP` &gt;= 7.0

Installation
------------

[](#installation)

```
$ composer require exinone/mixin-sdk-php -vvv
```

Use
---

[](#use)

### Example

[](#example)

```
// config format
$config0 = [
    "app_id"              => "d4155247-xxxx-xxxx-aa8a-775333b12406",
    "session_id"          => "7a633a3f-xxxx-xxxx-99b9-ae43c88be4be",
    "server_public_key"   => "556b82842exxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxa6d8ad8af3f2649474",
    "session_private_key" => "154cd8dceaxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx24d070b1acc880a13b",
    "spend_key"           => "f86d9dd3faxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxc64e8bc7c5aef6a0a4",
    "client_secret"       => "fdbe66249axxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxcc4519a4ea20d48b7e"
];

// old format is also supported
$config1 = [
    'mixin_id'      => '7000101633',
    'client_id'     => '982afd4e-92dd-4430-98cf-d308442ea04d',
    'client_secret' => 'b0a9adf1b358501b1fb6065c6292b09dbc675d5734225f86e0ec14a71d0fd38a',
    'pin'           => '125334',
    'pin_token'     => 'RzgyepFhLbMx+zLw6ogYzZ5k+kmlo8gQ2f4+1uwGMi1HgvMexGdFdeny0ffuBl7gXgPqi1GpUDPWPNrgAIjwGIFu+rHSre1G7JA5ET6tgIYoC+OI2dF0PmNK0qtkjK+qpGpSCt8nFbTfgyHjFENAp4hLZEIhuhzSPPmkkhXGlAU=',
    'session_id'    => '8a70b414-bdef-46f3-9738-186c1095da61',
    'private_key'   => setConfig('myConfig-B',$config1);
// then you can
$mixinSdk->use('myConfig-A')->user()->readProfile();

//-------
// Or more simple way, using the 'use' method , chained with other methods
$mixinSdk->use('myConfig-A',$config)->user()->readProfile();
// then you can
$mixinSdk->use('myConfig-A')->user()->readProfile();
```

### Run

[](#run)

codedescriptionmoduleMixin Network Docs`MixinSDK::pin()->updatePin($oldPin, $pin)`Update Pin codePin[link](https://developers.mixin.one/docs/api/pin/pin-update)`MixinSDK::pin()->verifyPin($pin)`Verify Pin codePin[link](https://developers.mixin.one/docs/api/pin/pin-verify)**---****--****--****---****--****--****---****--****--**`MixinSDK::user()->readProfile()`Read self profileUser[link](https://developers.mixin.one/docs/api/users/profile)`MixinSDK::user()->updateProfile(string $full_name, string $avatar_base64 = '')`Update user’s profile.User[link](https://developers.mixin.one/docs/api/users/profile)`MixinSDK::user()->updatePreferences(string $receive_message_source, string $accept_conversation_source)`Update user’s preferences.User[link](https://developers.mixin.one/docs/api/users/profile)`MixinSDK::user()->rotateQRCode()`Rotate user’s code\_id.User[link](https://developers.mixin.one/docs/api/users/profile)`MixinSDK::user()->readFriends()`Get user’s friends.User[link](https://developers.mixin.one/docs/api/users/contacts)`MixinSDK::user()->addFavoriteApp(string $user_id)`Add app to favorite app list.User[link](https://developers.mixin.one/docs/api/shared-bots)`MixinSDK::user()->removeFavoriteApp(string $user_id)`Remove app from favorite app list.User[link](https://developers.mixin.one/docs/api/shared-bots)`MixinSDK::user()->readFavoriteApps(string $user_id = null)`Returns the favorite apps are recommended by the user.User[link](https://developers.mixin.one/docs/api/shared-bots)**---****--****--****---****--****--****---****--****--**`MixinSDK::wallet()->createAddress(string $asset_id, string $destination, $pin, $label, $tag)`Create an address for withdrawalWallet[link](https://developers.mixin.one/docs/api/withdrawal/address-add)`MixinSDK::wallet()->readAddresses(string $assetId)`Read addresses by asset ID.Wallet[link](https://developers.mixin.one/docs/api/withdrawal/addresses)`MixinSDK::wallet()->readAddress(string $addressId)`Read an address by ID.Wallet[link](https://developers.mixin.one/docs/api/withdrawal/address)`MixinSDK::wallet()->deleteAddress(string $addressId, $pin = null)`Delete an address by ID.Wallet[link](https://developers.mixin.one/docs/api/withdrawal/address-delete)`MixinSDK::wallet()->readAssets()`Read user’s all assets in old mainnet.Wallet[link](https://developers.mixin.one/docs/api/assets)`MixinSDK::wallet()->safeReadAssets()`Read user’s all assets in Safe mainnet.Wallet[link](https://developers.mixin.one/docs/api/assets)`MixinSDK::wallet()->readAsset(string $assetId)`Read asset by ID in old mainnet.Wallet[link](https://developers.mixin.one/docs/api/assets/asset)`MixinSDK::wallet()->safeReadAsset(string $assetId)`Read asset by ID in Safe mainnet.Wallet[link](https://developers.mixin.one/docs/api/assets/asset)`MixinSDK::wallet()->deposit(string $assetId)`Gant an asset’s deposit address (The api same as `wallet()->readAsset`)Wallet[link](https://developers.mixin.one/docs/api/assets/asset)`MixinSDK::wallet()->withdrawal(string $addressId, $amount, $pin, $memo = '', $trace_id = null)`Get assets out of Mixin NetworkWallet[link](https://developers.mixin.one/docs/api/withdrawal)`MixinSDK::wallet()->transfer(string $assetId, string $opponentId, $pin, $amount, $memo = '', $trace_id = null)`Transfer of assets between Mixin Network users.Wallet[link](https://developers.mixin.one/docs/api/transfer)`MixinSDK::wallet()->verifyPayment(string $asset_id, string $opponent_id, $amount, string $trace_id)`Verify a transferWallet[link](https://developers.mixin.one/docs/api/transfer/payment)`MixinSDK::wallet()->readTransfer(string $traceId)`Read transfer by trace ID.Wallet[link](https://developers.mixin.one/docs/api/transfer)`MixinSDK::wallet()->readAssetFee(string $assetId)`Read transfer feeWallet[link](https://developers.mixin.one/docs/api/assets/fee)`MixinSDK::wallet()->readUserSnapshots($limit = null, string $offset = null, string $asset = '', string $order = 'DESC')`Get user's all snapshots.Wallet[link](https://developers.mixin.one/docs/api/network/snapshots)`MixinSDK::wallet()->readUserSnapshot(string $snapshotId)`Get user's a snapshots by ID.Wallet[link](https://developers.mixin.one/docs/api/network/snapshot)`MixinSDK::wallet()->accessTokenGetUserSnapshots(string $access_token, $limit = null, string $offset = null, string $asset = '', string $order = 'DESC')`Get user's all snapshots.Wallet[link](https://developers.mixin.one/docs/api/network/snapshots)`MixinSDK::wallet()->accessTokenGetUserSnapshot(string $access_token, string $snapshot_id)`Get user's a snapshots by ID.Wallet[link](https://developers.mixin.one/docs/api/network/snapshot)`MixinSDK::wallet()->accessTokenGetTransfer(string $access_token, string $trace_id)`Get TransferWallet[link](https://developers.mixin.one/docs/api/transfer/snapshot)`MixinSDK::wallet()->readRawMainNetAddress(string $client_id)`Get Transfer AddressWallet`MixinSDK::wallet()->accessTokenPostOutputs($access_token, $receivers, $index = 0)`Get Transfer AddressWallet[link](https://developers.mixin.one/docs/api/outputs)`MixinSDK::wallet()->multisigPayment(string $asset_id, array $receivers, int $threshold, $amount, $memo = '', $trace_id = null)`Post Multisig PaymentWallet[link](https://developers.mixin.one/docs/api/transfer/payment)`MixinSDK::wallet()->checkCode($code_id)`Get payment detailsWallet`MixinSDK::wallet()->readMultisigs(string $offset = '', $limit = null)`Get MultisigsWallet[link](https://developers.mixin.one/docs/api/multisigs/outputs)`MixinSDK::wallet()->accessTokenPostMultisigs(string $access_token, string $raw, string $action = 'sign')`Initiate a multi-signature transaction requestWallet[link](https://developers.mixin.one/docs/api/multisigs/outputs)`MixinSDK::wallet()->postMultisigs(string $raw, string $action = 'sign')`Initiate a multi-signature transaction requestWallet[link](https://developers.mixin.one/docs/api/multisigs/request)`MixinSDK::wallet()->multisigsRequests(string $raw, string $action = 'sign')`Initiate a multi-signature transaction requestWallet[link](https://developers.mixin.one/docs/api/multisigs/request)`MixinSDK::wallet()->multisigsRequestsSign(string $request_id, String $pin)`Sign multisig requestWallet[link](https://developers.mixin.one/docs/api/multisigs/request)`MixinSDK::wallet()->multisigsRequestsCancel(string $request_id, String $pin)`Send multisig cancelling requestWallet[link](https://developers.mixin.one/docs/api/multisigs/request)`MixinSDK::wallet()->multisigsRequestsUnlock(string $request_id, String $pin)`Send multisig unlocking requestWallet[link](https://developers.mixin.one/docs/api/multisigs/request)`MixinSDK::wallet()->externalProxy($params, $method = 'sendrawtransaction')`Draw assetsWallet[link](https://developers.mixin.one/docs/api/multisigs/request)`MixinSDK::wallet()->multisigsSign(string $request_id, String $pin)`SignWallet[link](https://developers.mixin.one/docs/api/multisigs/request)`MixinSDK::wallet()->multisigsCancel(string $request_id, String $pin)`Cancel SignWallet[link](https://developers.mixin.one/docs/api/multisigs/request)`MixinSDK::wallet()->readFiats()`Fiat currency to USD exchange rateWallet**---****--****--****---****--****--****---****--****--**`MixinSDK::network()->readUser( $userId)`Get user’s information by ID.Network[link](https://developers.mixin.one/docs/api/users/user)`MixinSDK::network()->readUsers(array $userIds)`Get users information by IDs.Network[link](https://developers.mixin.one/docs/api/users)`MixinSDK::network()->searchUser($item)`Search user by ID.Network[link](https://developers.mixin.one/docs/api/users/search)`MixinSDK::network()->readNetworkAsset(string $assetId)`Read public asset information by ID from Mixin Network.Network[link](https://developers.mixin.one/docs/api/network/assets)`MixinSDK::network()->readNetworkSnapshots($limit = null, string $offset = null, string $asset = '', string $order = 'DESC')`Read public snapshots of Mixin Network.Network[link](https://developers.mixin.one/docs/api/network/snapshots)`MixinSDK::network()->readNetworkSnapshot(string $snapshotId)`Read public snapshots of Mixin Network by ID.Network[link](https://developers.mixin.one/docs/api/network/snapshot)`MixinSDK::network()->createUser($fullName)`Create a new Mixin Network userNetwork[link](https://developers.mixin.one/docs/api/users/network-user)`MixinSDK::network()->externalTransactions($asset, $destination, $limit, $offset, $tag, $transaction_hash, $source, $user)`Read external transactionsNetwork[link](https://developers.mixin.one/docs/api/external/pending-deposits)`MixinSDK::network()->createAttachments()`Create an attachment upload address.Network[link](https://developers.mixin.one/docs/api/messages/attachment-upload)`MixinSDK::network()->mixinNetworkChainsSyncStatus()`Get Mixin Network Chains Synchronize statusNetwork`MixinSDK::network()->topAsset()`top assetNetwork[link](https://developers.mixin.one/docs/api/network/assets)`MixinSDK::network()->multisigAsset()`multisig assetNetwork[link](https://developers.mixin.one/docs/api/network/assets)`MixinSDK::network()->requestAccessToken(string $code)`use code request access tokenNetwork[link](https://developers.mixin.one/docs/api-overview)`MixinSDK::network()->accessTokenGetInfo(string $access_token)`use access token get infoNetwork[link](https://developers.mixin.one/docs/api-overview)`MixinSDK::network()->accessTokenGetAssets(string $access_token)`use access token get assets infoNetwork[link](https://developers.mixin.one/docs/api-overview)`MixinSDK::network()->accessTokenGetContacts(string $access_token)`use access token get contact infoNetwork[link](https://developers.mixin.one/docs/api-overview)`MixinSDK::network()->accessTokenGetAddresses(string $access_token, string $assetId)`use access token get addressesNetwork[link](https://developers.mixin.one/docs/api-overview)`MixinSDK::network()->accessTokenGetAddress(string $access_token, string $addressId)`use access token get an addressesesNetwork[link](https://developers.mixin.one/docs/api-overview)`MixinSDK::network()->createConversations($category, $participants, $conversation_id, $name)`Create groupsNetwork[link](https://developers.mixin.one/docs/api/conversations/create)`MixinSDK::network()->readConversations($conversation_id)`Read groupsNetwork[link](https://developers.mixin.one/docs/api/conversations/read)`MixinSDK::network()->participantsActions(string $conversation_id, array $participants, string $action = "ADD")`Manage groupsNetwork[link](https://developers.mixin.one/docs/api/conversations/group)`MixinSDK::network()->rotateConversation(string $conversation_id)`Rotate ConversationNetwork[link](https://developers.mixin.one/docs/api/conversations/create)`MixinSDK::network()->searchAssets(string $snapshotId)`search assetsNetwork[link](https://developers.mixin.one/docs/api/assets/asset)`MixinSDK::network()->readHistoricalPrices(string $asset, string $offset)`get the historical price of a given asset\_idNetwork[link](https://developers.mixin.one/docs/api/network/ticker)**---****--****--****---****--****--****---****--****--**`MixinSDK::message()->sendText($user_id, $data, $category , $conversation_id)`send textMessage[link](https://developers.mixin.one/docs/api/messages/send)`MixinSDK::message()->sendContact($user_id, $contact_id, $category, $conversation_id)`send user cardMessage[link](https://developers.mixin.one/docs/api/messages/send)`MixinSDK::message()->sendAppButtonGroup($user_id, $data, $category, $conversation_id)`send App Button Group (max three)Message[link](https://developers.mixin.one/docs/api/messages/send)`MixinSDK::message()->sendAppCard($user_id, $data, $category, $conversation_id)`send App CardMessage[link](https://developers.mixin.one/docs/api/messages/send)`MixinSDK::message()->askMessageReceipt($message_id)`ask Message ReceiptMessage[link](https://developers.mixin.one/docs/api/messages/send)`MixinSDK::message()->sendBatchMessage($user_id, $data, $use_http, $type)`send batch messageMessage[link](https://developers.mixin.one/docs/api/messages/send)**---****--****--****---****--****--****---****--****--**`MixinSDK::getOauthUrl($client_id, string $scope)`Get Oauth Urlother[link](https://developers.mixin.one/docs/api-overview)`MixinSDK::getPayUrl($asset_id, $amount, $trace_id, $memo, $client_id = null)`generate a pay Urlother[link](https://developers.mixin.one/docs/api-overview)`MixinSDK::getConfig($configGroupName='')`read configotherExceptions
----------

[](#exceptions)

If MixinNetwork response with an error，An Exception `ExinOne\MixinSDK\Exceptions\MixinNetworkRequestException` will be thrown. Developers need to capture and handle this exception.

```
try {
    // If the transfer fails here, an error will be thrown.
    $mixinSdk->wallet()->transfer($asset_id, $opponent_id, $pin, $amount, $memo);
} catch (MixinNetworkRequestException $e) {
    // Here errCode and errMessage are the same as MixinNetwork, refer to the following link.
    $errCode    = $e->getCode();
    $errMessage = $e->getMessage();
    ...
} catch (\Throwable $e) {
    ...
}
```

[MixinNetwork Error Codes](https://developers.mixin.one/docs/api/error-codes)

### Other Exceptions

[](#other-exceptions)

classdescription`ExinOne\MixinSDK\Exceptions\MixinNetworkRequestException`Api request fail`ExinOne\MixinSDK\Exceptions\NotFoundConfigException`not found config set`ExinOne\MixinSDK\Exceptions\LoadPrivateKeyException`private Key error`ExinOne\MixinSDK\Exceptions\ClassNotFoundException`class not foundWARNING
-------

[](#warning)

1. You can config `iterator` in the following way. The `iterator` is used when a PIN is encrypted. Generally, `iterator`should not be modified. If you want ot modify this variable, be sure to know what you are doing. [More details on iterator](https://developers.mixin.one/docs/dapp/guide/pin#encrypting-pin)

    ```
     $iterator = [time()];
     // if use it by $mixinSdk->pin()->updatePin($oldPin,$pin),
     // $iterator need have two element (count($iterator) == 2)
     $mixinSdk->wallet()->setIterator($iterator)->transfer($asset_id, $opponent_id, $pin, $amount, $memo);
     // By default, ( microtime(true) . RANDOM NUMBERS ) * 1000000000 is used as iterator
    ```
2. Setting Http Request timeout

    ```
     $mixinSdk->wallet()->setTimeout(10)->transfer($asset_id, $opponent_id, $pin, $amount, $memo);
     // The default timeout is 20 s
    ```
3. Get raw Recponse content

    ```
     $mixinSdk->wallet()->setRaw(true)->transfer($asset_id, $opponent_id, $pin, $amount, $memo);
     // Return MixinNetwork raw Response content
    ```

Alternatives
------------

[](#alternatives)

\[[exinone/laravel-mixin-sdk](https://github.com/ExinOne/laravel-mixin-sdk)\]

\[[zamseam/mixin](https://github.com/zamseam/mixin)\]

LICENSE
-------

[](#license)

**MIT**

###  Health Score

61

—

FairBetter than 99% of packages

Maintenance89

Actively maintained with recent releases

Popularity31

Limited adoption so far

Community28

Small or concentrated contributor base

Maturity83

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 50.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~25 days

Recently: every ~60 days

Total

105

Last Release

55d ago

PHP version history (3 changes)1.0.0PHP ^7.1.3

1.3.1PHP ^7.2

1.3.6PHP ^7.2 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/0c538bf042ffb0ad263d8c73eb3b4cbbabd428b59babf2894fdb82f79dd1a347?d=identicon)[Thorb](/maintainers/Thorb)

![](https://www.gravatar.com/avatar/5875510bbf27278ada3a3fdc60b57e9ca42c72ea2da300da0dc13fad1fdc6394?d=identicon)[Lorca\_R\_](/maintainers/Lorca_R_)

---

Top Contributors

[![Lorca-R](https://avatars.githubusercontent.com/u/5287990?v=4)](https://github.com/Lorca-R "Lorca-R (94 commits)")[![Kuri-su](https://avatars.githubusercontent.com/u/22676438?v=4)](https://github.com/Kuri-su "Kuri-su (49 commits)")[![JokerLinly](https://avatars.githubusercontent.com/u/4143751?v=4)](https://github.com/JokerLinly "JokerLinly (15 commits)")[![yanking](https://avatars.githubusercontent.com/u/13237417?v=4)](https://github.com/yanking "yanking (11 commits)")[![leonardoli2022](https://avatars.githubusercontent.com/u/107162109?v=4)](https://github.com/leonardoli2022 "leonardoli2022 (9 commits)")[![rare0619](https://avatars.githubusercontent.com/u/11610757?v=4)](https://github.com/rare0619 "rare0619 (4 commits)")[![dbarobin](https://avatars.githubusercontent.com/u/3949252?v=4)](https://github.com/dbarobin "dbarobin (2 commits)")[![strcpyall](https://avatars.githubusercontent.com/u/17068241?v=4)](https://github.com/strcpyall "strcpyall (2 commits)")[![dependabot-preview[bot]](https://avatars.githubusercontent.com/in/2141?v=4)](https://github.com/dependabot-preview[bot] "dependabot-preview[bot] (1 commits)")

---

Tags

exinonemixinmixin-networkmixin-network-sdkmixin-sdk-phpphpsdk

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/exinone-mixin-sdk-php/health.svg)

```
[![Health](https://phpackages.com/badges/exinone-mixin-sdk-php/health.svg)](https://phpackages.com/packages/exinone-mixin-sdk-php)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[wheelpros/fitment-platform-api

Magento 2 (Open Source)

12.1k1.2k](/packages/wheelpros-fitment-platform-api)[packbackbooks/lti-1p3-tool

A library used for building IMS-certified LTI 1.3 tool providers in PHP.

51438.3k2](/packages/packbackbooks-lti-1p3-tool)[get-stream/stream

A PHP client for Stream (https://getstream.io)

1451.3M8](/packages/get-stream-stream)[hoels/app-store-server-library-php

The PHP server library for the App Store Server API and App Store Server Notifications.

44162.2k](/packages/hoels-app-store-server-library-php)[soneso/stellar-php-sdk

Stellar PHP SDK for the Stellar Network

4048.2k4](/packages/soneso-stellar-php-sdk)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
