{"id":42121766,"url":"https://github.com/netinternet/logicboxes-api","last_synced_at":"2026-01-26T14:33:52.750Z","repository":{"id":57025542,"uuid":"112186300","full_name":"netinternet/logicboxes-api","owner":"netinternet","description":"Logicboxes api for laravel","archived":false,"fork":false,"pushed_at":"2019-02-28T14:34:29.000Z","size":95,"stargazers_count":15,"open_issues_count":1,"forks_count":7,"subscribers_count":7,"default_branch":"develop","last_synced_at":"2025-09-20T08:22:40.109Z","etag":null,"topics":["api","laravel","logicboxes","resellerclub"],"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/netinternet.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":"2017-11-27T11:11:31.000Z","updated_at":"2024-06-15T05:53:46.000Z","dependencies_parsed_at":"2022-08-23T14:21:03.204Z","dependency_job_id":null,"html_url":"https://github.com/netinternet/logicboxes-api","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/netinternet/logicboxes-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netinternet%2Flogicboxes-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netinternet%2Flogicboxes-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netinternet%2Flogicboxes-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netinternet%2Flogicboxes-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/netinternet","download_url":"https://codeload.github.com/netinternet/logicboxes-api/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netinternet%2Flogicboxes-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28780349,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-26T13:55:28.044Z","status":"ssl_error","status_checked_at":"2026-01-26T13:55:26.068Z","response_time":59,"last_error":"SSL_read: 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":["api","laravel","logicboxes","resellerclub"],"created_at":"2026-01-26T14:33:52.092Z","updated_at":"2026-01-26T14:33:52.745Z","avatar_url":"https://github.com/netinternet.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Total Downloads](https://poser.pugx.org/netinternet/logicboxes/downloads)](https://packagist.org/packages/netinternet/logicboxes)\n[![Latest Stable Version](https://poser.pugx.org/netinternet/logicboxes/v/stable)](https://packagist.org/packages/netinternet/logicboxes)\n\n# Logicboxes Package\n\nLogicBoxes package provides most of the LogicBoxes API functionality and compatible company apis like resellerclub, whois.com and many more.\n\nThis package mainly developed for laravel package but you can use as a standalone package.\n\n## Installation\n\n```\ncomposer require netinternet/logicboxes\n```\n\nPackage should be autodiscover by default but if you are using older versions of laravel you should change config/app.php with below;\n\nAdd this in providers array;\n\n```js\nNetinternet\\Logicboxes\\LogicboxesServiceProvider::class,\n```\n\nAdd this in aliases array;\n```js\n'Logicboxes' =\u003e Netinternet\\Logicboxes\\Facades\\Logicboxes::class,\n```\n\n## Configuration\n\nUse command below and choose logicboxes option when asked. It will create logicboxes.php in config directory.\n\n```php\nphp artisan vendor:publish\n```\n\nYou can also create this file manually and paste below content in file;\n\n```php \n\u003c?php\n    return [\n        'mode' =\u003e env('LOGICBOXES_ENV', 'test'),\n        'auth-userid' =\u003e env('LOGICBOXES_AUTHID'),\n        'api-key' =\u003e env('LOGICBOXES_APIKEY')\n    ];\n```\n\nAs you can see by default package uses environment variables. Be sure that use test mode when development mode. We strongly recommend to create [LogicBox Demo Account](http://cp.onlyfordemo.net/servlet/ResellerSignupServlet?\u0026validatenow=false)\n\n## Usage\n\nYou can choose to use facade or helper function. We will use helper functions for examples in this documentation.\n\n\n```php\nuse Logicboxes;\n// With Facade\npublic function myMethod()\n{\n\treturn Logicboxes::domain('domain-name.tld')-\u003ens();\n}\n```\nor with helper\n```php\npublic function myMethod()\n{\n\treturn logicboxes()-\u003edomain('domain-name.tld')-\u003ens();\n}\n```\n\n\n## Avalaible Methods\n\n```php\n// get domain nameservers.\nlogicboxes()-\u003edomain('domain-name.tld')-\u003enameservers();\n// get domain nameservers short.\nlogicboxes()-\u003edomain('domain-name.tld')-\u003ens();\n// get domains all details.\nlogicboxes()-\u003edomain('domain-name.tld')-\u003edetails();\n// get domains status\nlogicboxes()-\u003edomain('domain-name.tld')-\u003estatus();\n// get domains order details\nlogicboxes()-\u003edomain('domain-name.tld')-\u003eorder();\n// get domains dnssec details\nlogicboxes()-\u003edomain('domain-name.tld')-\u003ednssec();\n// get domains contact id list.\nlogicboxes()-\u003edomain('domain-name.tld')-\u003econtact()-\u003eids();\n// get domains registrant contact details\nlogicboxes()-\u003edomain('domain-name.tld')-\u003econtact()-\u003eregistrant();\n// get domains admin contact details\nlogicboxes()-\u003edomain('domain-name.tld')-\u003econtact()-\u003eadmin();\n// get domains tech contact details\nlogicboxes()-\u003edomain('domain-name.tld')-\u003econtact()-\u003etech();\n// get domains billing contact details\nlogicboxes()-\u003edomain('domain-name.tld')-\u003econtact()-\u003ebilling();\n// check for domain\nlogicboxes()-\u003edomain('domain-name')-\u003echeck(['com','net'])\n// first parameter is array of tlds and second parameter domain suggessions as a boolean. Default is false.\n// and you can also set  domain index as third parameter for getting immediate domain status without result\n//object ```logicboxes()-\u003edomain('domain-name')-\u003echeck(['com','net'],false,1)```\n\n// get domain order id\nlogicboxes()-\u003edomain('domain-name.tld')-\u003eorderId();\n// set enable theft protection\nlogicboxes()-\u003edomain('domain-name.tld')-\u003eenableTheftProtection();\n// set disable theft protection\nlogicboxes()-\u003edomain('domain-name.tld')-\u003edisableTheftProtection();\n// modify domain nameservers\nlogicboxes()-\u003edomain('domain-name.tld')-\u003emodifyNameServers((array) $ns);\n// delete this domain\nlogicboxes()-\u003edomain('domain-name.tld')-\u003edelete();\n// cancel domain transfer process\nlogicboxes()-\u003edomain('domain-name.tld')-\u003ecancelTransfer();\n// register domain\nlogicboxes()-\u003edomain('domain-name.tld')-\u003eregister([\n    'years' =\u003e $years,\n    'ns' =\u003e (array) $ns,\n    'customer-id' =\u003e $customerId,\n    'reg-contact-id' =\u003e $regContactId,\n    'admin-contact-id' =\u003e $adminContactId,\n    'tech-contact-id' =\u003e $techContactId,\n    'billing-contact-id' =\u003e $billingContactId,\n    'invoice-option' =\u003e 'KeepInvoice',\n    'purchase-privacy' =\u003e $purchasePrivacy,\n    'protect-privacy' =\u003e $protectPrivacy,\n]);\n\n// Domain transfer\nlogicboxes()-\u003edomain('domain-name.tld')-\u003etransfer([\n    'auth-code' =\u003e $authCode,\n    'years' =\u003e $years,\n    'ns' =\u003e (array)$ns,\n    'customer-id' =\u003e $customerId,\n    'reg-contact-id' =\u003e $regContactId,\n    'admin-contact-id' =\u003e $adminContactId,\n    'tech-contact-id' =\u003e $techContactId,\n    'billing-contact-id' =\u003e $billingContactId,\n    'invoice-option' =\u003e $invoiceOption,\n    'purchase-privacy' =\u003e $purchasePrivacy,\n    'protect-privacy' =\u003e $protectPrivacy,\n]);\n\n// set Auth Code\nlogicboxes()-\u003edomain('domain-name.tld')-\u003eauthCode('authcode');\n\n// modify Auth Code\nlogicboxes()-\u003edomain('domain-name.tld')-\u003emodifyAuthCode('authcode');\n\n// modify Auth Code\nlogicboxes()-\u003edomain('domain-name.tld')-\u003evalidateTransferRequest();\n\n// renew domain ($date =\u003e epochtime)\nlogicboxes()-\u003edomain('domain-name.tld')-\u003erenew($years, $date, $invoiceOption, true);\n// $purchasePrivacy is default false\n\n// deafult customer nameservers\nlogicboxes()-\u003edomain()-\u003ecustomerDefaultNameServers($customerId);\n\n// Check premium\nlogicboxes()-\u003edomain('domain-name.tld')-\u003eisDomainPremium();\n\n// add new child nameserver\nlogicboxes()-\u003edomain('domain-name.tld')-\u003eaddChildNs('ns1.domain.com', ['0.0.0.0', '0.0.0.1']);\n\n// get lock applied list\nlogicboxes()-\u003edomain('domain-name.tld')-\u003egetListLockApplied();\n\n// set suspend\nlogicboxes()-\u003edomain('domain-name.tld')-\u003esuspend('reason text');\n// set unsuspend\nlogicboxes()-\u003edomain('domain-name.tld')-\u003eunSuspend();\n\n```\n\n#### Customer\n\n```php\n// Creating a customer\nlogicboxes()-\u003ecustomer()-\u003ecreate([\n\t'username' =\u003e  $this-\u003efaker-\u003eemail,\n\t'passwd' =\u003e 'Qs3jiA5fd8mq4',\n\t'name' =\u003e $this-\u003efaker-\u003ename,\n\t'company' =\u003e $this-\u003efaker-\u003ecompany,\n\t'address-line-1' =\u003e $this-\u003efaker-\u003estreetAddress,\n\t'city' =\u003e $this-\u003efaker-\u003ecity,\n\t'state' =\u003e $this-\u003efaker-\u003estate,\n\t'country' =\u003e $this-\u003efaker-\u003ecountryCode,\n\t'zipcode' =\u003e $this-\u003efaker-\u003epostcode,\n\t'phone-cc' =\u003e 90,\n\t'phone' =\u003e 5555555555,\n\t'lang-pref' =\u003e 'en'\n]);\n\n// getting a customer by email or id\nlogicboxes()-\u003ecustomer()-\u003eget('app@yourdomain.com')\n//or by id\nlogicboxes()-\u003ecustomer()-\u003eget(17939294)\n// Changing customers password\nlogicboxes()-\u003ecustomer()-\u003eget('app@yourdomain.com','myNew8CharPassword')\n// Change customer\nlogicboxes()-\u003ecustomer()-\u003emoveProduct(\"app@yourdomain.com\", 'old-customer-id', 'new-customer-id, 'old-contact');\n```\n\n## Test Configuration\n- You should first open the LogicBox test account [LogicBox Demo Account Link](http://cp.onlyfordemo.net/servlet/ResellerSignupServlet?\u0026validatenow=false)\n- Copy example config file: \n```sh\ncp tests/config.ini.example tests/config.ini\n```\n- Change credentials in tests/config.ini file.\n- Run phpunit:\n```sh\n  $ vendor/phpunit/phpunit/phpunit \n```\n\n## Contributing\n1. Fork it ( https://github.com/netinternet/logicboxes-api/ )\n2. Create your feature branch (git checkout -b my-new-feature)\n3. Commit your changes (git commit -am 'Add some feature')\n4. Push to the branch (git push origin my-new-feature)\n5. Create a new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetinternet%2Flogicboxes-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnetinternet%2Flogicboxes-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetinternet%2Flogicboxes-api/lists"}