├── modules └── registrars │ └── synergywholesaledomains │ ├── logo.png │ ├── index.php │ ├── domaindnsemailforwarding.tpl │ ├── css │ └── synergywholesaledomains.css │ ├── whmcs.json │ ├── domaindnsurlforwarding.tpl │ ├── domaincor.tpl │ ├── domainoptions.tpl │ ├── domaindnssec.tpl │ ├── domainchildhosts.tpl │ ├── hooks.php │ └── js │ └── functions.js ├── .gitignore ├── tests ├── polyfill.php ├── _bootstrap.php └── SynergyWholesaleDomainModuleTest.php ├── README.txt ├── .gitattributes ├── phpunit.xml ├── composer.json ├── .github └── workflows │ ├── release.yml │ └── continuous-integration.yml ├── phpcs.xml ├── package.json ├── CONTRIBUTING.md ├── README.md ├── Makefile ├── resources └── domains │ └── additionalfields.php ├── CHANGELOG.md ├── LICENSE └── composer.lock /modules/registrars/synergywholesaledomains/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SynergyWholesale/WHMCS-Domains-Module/HEAD/modules/registrars/synergywholesaledomains/logo.png -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # IDE Files 2 | *.sublime-project 3 | *.sublime-workspace 4 | .phpintel/* 5 | .idea/ 6 | 7 | # Mac 8 | .DS_Store 9 | 10 | # Node 11 | node_modules 12 | 13 | # Composer 14 | /vendor/ 15 | 16 | # Misc 17 | *.cache 18 | 19 | # Minified source 20 | *.min.css 21 | *.min.js -------------------------------------------------------------------------------- /modules/registrars/synergywholesaledomains/index.php: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 | ./tests/ 11 | 12 | 13 | -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "synergywholesale/whmcs-domains-module", 3 | "type": "project", 4 | "description": "Synergy Wholesale Registrar Module for WHMCS Billing Automation Platform", 5 | "license": "GPL-3.0", 6 | "require-dev": { 7 | "php": ">=7.2 <8.4", 8 | "squizlabs/php_codesniffer": "^3.12.2", 9 | "phpunit/phpunit": "^8.5.42" 10 | }, 11 | "config": { 12 | "optimize-autoloader": true, 13 | "preferred-install": "dist", 14 | "sort-packages": true, 15 | "allow-plugins": {} 16 | }, 17 | "minimum-stability": "stable", 18 | "prefer-stable": true, 19 | "prefer-lowest": true 20 | } 21 | -------------------------------------------------------------------------------- /.github/workflows/release.yml: -------------------------------------------------------------------------------- 1 | name: Release 2 | 3 | permissions: 4 | contents: write 5 | packages: write 6 | 7 | on: 8 | release: 9 | types: [ released ] 10 | 11 | jobs: 12 | build: 13 | name: Upload Release Asset 14 | runs-on: ubuntu-latest 15 | 16 | steps: 17 | - uses: actions/checkout@v4 18 | 19 | - uses: actions/setup-node@v4 20 | with: 21 | node-version: 'lts/*' 22 | 23 | - name: Build 24 | run: make build 25 | 26 | - name: Attach Build to Release 27 | uses: softprops/action-gh-release@v2 28 | env: 29 | GITHUB_TOKEN: ${{ github.token }} 30 | with: 31 | files: ./synergy-wholesale-domains-${{ github.ref_name }}.zip 32 | -------------------------------------------------------------------------------- /phpcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Ruleset for Synergy Wholesale WHMCS modules 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | modules/registrars/synergywholesaledomains/ 17 | 18 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@synergywholesale/whmcs-domains-module", 3 | "description": "This repository contains the source code for the [Synergy Wholsale](https://synergywholesale.com/) WHMCS domains module.", 4 | "dependencies": { 5 | "minify": "^6.0.0", 6 | "uglify-js": "^3.13.0" 7 | }, 8 | "scripts": { 9 | "build-css": "minify modules/registrars/synergywholesaledomains/css/synergywholesaledomains.css > modules/registrars/synergywholesaledomains/css/synergywholesaledomains.min.css", 10 | "build-js": "uglifyjs modules/registrars/synergywholesaledomains/js/functions.js -c -o modules/registrars/synergywholesaledomains/js/functions.min.js", 11 | "build": "npm run-script build-css && npm run-script build-js", 12 | "check-syntax": "node --check modules/registrars/synergywholesaledomains/js/functions.js" 13 | }, 14 | "repository": { 15 | "type": "git", 16 | "url": "ssh://git@github.com:SynergyWholesale/WHMCS-Domains-Module.git" 17 | }, 18 | "license": "GPL-3.0" 19 | } 20 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributing 2 | --- 3 | 4 | Please note that the following requirements are only required if you wish to contribute to the module and develop locally. If you wish to only use the module, please refer to the [installation section](README.md#installation). 5 | 6 | ### Requirements 7 | - Node 8 | - NPM 9 | - GNU make 10 | - GNU sed 11 | - PHP >= 5.6 12 | - Composer 13 | - Git 14 | - Curl 15 | 16 | ## Setting up your environment 17 | Please ensure you have cloned the repository and have the [required tools](#requirements) installed. You can then use `make tools` to install the composer and node dependencies. Alternatively, you can run `composer install` and `npm install` individually. 18 | 19 | ### Building the CSS/JS assets 20 | To build the CSS and JS assets, please run `make build-assets` 21 | 22 | ### Running tests 23 | Before running the tests please ensure you've 24 | 25 | We have three different types of tests; 26 | - JavaScript Syntax Check `npm run-script check-syntax` 27 | - PHP Syntax/Sniffer `vendor/bin/phpcs` 28 | - PHP Unit Tests `vendor/bin/phpunit` 29 | 30 | To run all three at once, you can run `make test`. -------------------------------------------------------------------------------- /modules/registrars/synergywholesaledomains/domaindnsemailforwarding.tpl: -------------------------------------------------------------------------------- 1 | 4 | 5 |

Email forwarding

6 |

Use the options below to create, manage and delete Email forwarding options set on the domain name.

7 | 8 | 9 | 10 | 11 |
12 |

Email Forwards

13 | 14 |
15 |
16 |
17 |
Prefix
18 |
19 |
Forward To
20 |
21 |
22 |
23 |
24 |
 
25 |
26 | -------------------------------------------------------------------------------- /tests/_bootstrap.php: -------------------------------------------------------------------------------- 1 | Logs. 24 | * 25 | * @param string $module 26 | * @param string $action 27 | * @param string|array $request 28 | * @param string|array $response 29 | * @param string|array $data 30 | * @param array $variablesToMask 31 | * 32 | * @return void|false 33 | */ 34 | function logModuleCall( 35 | $module, 36 | $action, 37 | $request, 38 | $response, 39 | $data = '', 40 | $variablesToMask = [] 41 | ) { 42 | // do nothing during tests 43 | } -------------------------------------------------------------------------------- /modules/registrars/synergywholesaledomains/css/synergywholesaledomains.css: -------------------------------------------------------------------------------- 1 | /** 2 | * Synergy Wholesale Registrar Module 3 | * 4 | * @copyright Copyright (c) Synergy Wholesale Pty Ltd 2020 5 | * @license https://github.com/synergywholesale/whmcs-domains-module/LICENSE 6 | */ 7 | .sw-ellipis { 8 | overflow: hidden; 9 | -ms-text-overflow: ellipsis; 10 | -o-text-overflow: ellipsis; 11 | text-overflow: ellipsis; 12 | display: block; 13 | white-space: nowrap; 14 | } 15 | 16 | .sw-no-margin { 17 | margin: unset; 18 | } 19 | 20 | .sw-inline { 21 | display:inline-block; 22 | } 23 | .sw-insert-row { 24 | margin: 20px 0 10px 0; 25 | } 26 | 27 | .sw-table-form input, .sw-table-form select { 28 | max-width: 100%; 29 | } 30 | 31 | .sw-table-form input[type=text], .sw-table-form select { 32 | height:33px; 33 | } 34 | 35 | .sw-row-table .row:not(#sw-heading) { 36 | padding:5px 0 5px 0; 37 | } 38 | 39 | .sw-row-table .row:not(#sw-heading):nth-child(even) { 40 | background-color:#F0F0F5; 41 | } 42 | 43 | .sw-row-table .row:not(#sw-heading):nth-child(odd) { 44 | background-color:#F2F7FC; 45 | } 46 | 47 | .sw-loader { 48 | border: 8px solid #f3f3f3; 49 | border-top: 8px solid #3498db; 50 | border-radius: 50%; 51 | width: 60px; 52 | height: 60px; 53 | animation: sw-spin 1.5s linear infinite; 54 | margin: auto; 55 | margin-bottom: 20px; 56 | } 57 | 58 | @keyframes sw-spin { 59 | 0% { 60 | transform: rotate(0deg); 61 | } 62 | 100% { 63 | transform: rotate(360deg); 64 | } 65 | } -------------------------------------------------------------------------------- /.github/workflows/continuous-integration.yml: -------------------------------------------------------------------------------- 1 | name: Continuous Integration 2 | 3 | on: 4 | workflow_dispatch: 5 | push: 6 | branches: [ master, main ] 7 | paths: 8 | - '**.php' 9 | - '**.js' 10 | - '**.ts' 11 | - '**.json' 12 | - '**.lock' 13 | pull_request: 14 | branches: [ master, main ] 15 | paths: 16 | - '**.php' 17 | - '**.js' 18 | - '**.ts' 19 | - '**.json' 20 | - '**.lock' 21 | 22 | jobs: 23 | frontend: 24 | name: Frontend Tests 25 | runs-on: ubuntu-latest 26 | 27 | steps: 28 | - uses: actions/checkout@v4 29 | 30 | - name: Setup Node 31 | uses: actions/setup-node@v4 32 | with: 33 | node-version: 'lts/*' 34 | 35 | - name: Install JavaScript Dependencies 36 | run: npm install 37 | 38 | - name: Run Tests 39 | run: npm run-script check-syntax 40 | 41 | php: 42 | name: PHP ${{ matrix.php-versions }} Test 43 | runs-on: ubuntu-latest 44 | 45 | strategy: 46 | matrix: 47 | php-versions: ['7.2', '7.3', '7.4', '8.1', '8.2', '8.3'] 48 | 49 | steps: 50 | - uses: actions/checkout@v4 51 | 52 | - name: Setup PHP 53 | uses: shivammathur/setup-php@v2 54 | with: 55 | php-version: ${{ matrix.php-versions }} 56 | extensions: soap 57 | tools: composer, phpcs, phpunit:8.5.29 58 | coverage: pcov 59 | 60 | - name: Install PHP Dependencies 61 | uses: ramsey/composer-install@v3 62 | 63 | - name: Check Style 64 | run: phpcs 65 | 66 | - name: Run Tests 67 | run: phpunit 68 | -------------------------------------------------------------------------------- /tests/SynergyWholesaleDomainModuleTest.php: -------------------------------------------------------------------------------- 1 | assertTrue(function_exists(SW_MODULE_NAME . '_' . $method)); 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /modules/registrars/synergywholesaledomains/whmcs.json: -------------------------------------------------------------------------------- 1 | { 2 | "schema": "1.0", 3 | "type": "whmcs-registrars", 4 | "name": "synergywholesaledomains", 5 | "license": "GPLv3", 6 | "category": "domains", 7 | "description": { 8 | "name": "Synergy Wholesale Domains v{{VERSION}}", 9 | "tagline": "Resell domain names with Australia's Favourite Wholesaler", 10 | "long": "Not a Synergy Wholesale partner yet? [Become one today|https://synergywholesale.com/become-a-partner/]", 11 | "features": [ 12 | "Full Premium Domain Support", 13 | "Domain Registration", 14 | "Domain Transfer", 15 | "Domain Renewal", 16 | "Domain Management", 17 | "Update Nameservers", 18 | "Configure/Manage Child hosts", 19 | "Configure/Manage DNSSEC", 20 | "ID Protection", 21 | "Update Contacts", 22 | "DNS Hosting", 23 | "URL Forwarding", 24 | "HTTP 301 Redirect", 25 | "HTML Frame (Cloaking)", 26 | "Email Forwarding", 27 | "Advanced Domain/Transfer Sync", 28 | "Includes retrospective premium domain identification", 29 | "Manual sync button in the admin area", 30 | "API Connectivity Tester" 31 | ] 32 | }, 33 | "logo": { 34 | "filename": "logo.png" 35 | }, 36 | "support": { 37 | "homepage": "https:\/\/synergywholesale.com\/", 38 | "learn_more": "https:\/\/synergywholesale.com\/faq\/category\/api-whmcs-modules\/domain-registrar-module\/", 39 | "support_url": "https:\/\/synergywholesale.com\/support\/", 40 | "docs_url": "https:\/\/synergywholesale.com\/faq\/article\/installing-the-whmcs-domain-registrar-module\/" 41 | }, 42 | "authors": [ 43 | { 44 | "name": "Cameron Hall, Synergy Wholesale", 45 | "homepage": "https:\/\/github.com\/cameronhall\/" 46 | } 47 | ] 48 | } -------------------------------------------------------------------------------- /modules/registrars/synergywholesaledomains/domaindnsurlforwarding.tpl: -------------------------------------------------------------------------------- 1 | 4 | 5 |

DNS records{if $currentDnsConfigType == 2}/ URL forwards{/if}

6 |

Use the options below to create, manage and delete DNS records and URL forwarding options set on the domain name.

7 | 8 | 9 | 10 |
11 |

DNS records

12 | 15 |
16 |
17 |
18 |
Host Name
19 |
Address / Content
20 |
Type
21 |
TTL
22 |
Priority
23 |
24 |
25 |
26 |
27 |
 
28 |
29 | 30 | {if $currentDnsConfigType == 2} 31 |
32 |

URL forwards

33 | 36 |
37 |
38 |
39 |
Host Name
40 |
Address
41 |
Type
42 |
43 |
44 |
45 |
46 |
 
47 |
48 | {/if} -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Synergy Wholesale WHMCS Domains Module 2 | 3 | ![Tests](https://github.com/synergywholesale/whmcs-domains-module/workflows/Tests/badge.svg?branch=master&event=push) 4 | [![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](LICENSE) 5 | [![Contributors welcome](https://img.shields.io/badge/Contributors-welcome-brightgreen.svg)](https://github.com/synergywholesale/whmcs-domains-module/blob/master/CONTRIBUTING.md) 6 | 7 | This repository contains the source code for the [Synergy Wholesale](https://synergywholesale.com/) WHMCS domains module. 8 | 9 | ## Reporting Issues/Requesting Features 10 | --- 11 | If you would like to report a bug or request a new feature/improvement for our module, please have a read [our guide here](https://synergywholesale.com/faq/category/api-whmcs-modules/bug-reporting-feature-requesting/) and submit a support request to our technical support team! 12 | 13 | ## Features 14 | --- 15 | - Full Premium Domain Support 16 | - Domain Registration 17 | - Domain Transfer 18 | - Domain Renewal 19 | - Domain Management 20 | - Update Nameservers 21 | - Configure/Manage Child hosts 22 | - Configure/Manage DNSSEC 23 | - ID Protection 24 | - Update Contacts 25 | - DNS Hosting 26 | - Supports: A, AAAA, CNAME, MX, NS, SRV, and TXT 27 | - URL Forwarding 28 | - HTTP 301 Redirect 29 | - HTML Frame (Cloaking) 30 | - Email Forwarding 31 | - Advanced Domain/Transfer Sync 32 | - Includes retrospective premium domain identification 33 | - Manual sync button in the admin area 34 | - API Connectivity Tester 35 | 36 | # Installation 37 | --- 38 | The [following guide](https://synergywholesale.com/faq/article/installing-the-whmcs-domain-registrar-module/) will assist you in installation and configuration of the Synergy Wholesale WHMCS Domain Registrar module into your WHMCS installation 39 | 40 | ## Minimum Requirements 41 | --- 42 | This module supports the [minimum WHMCS system requirements](https://docs.whmcs.com/System_Requirements). This module may work with [EOL versions of WHMCS](https://docs.whmcs.com/Long_Term_Support#WHMCS_Version_.26_LTS_Schedule) including those < 7.0, however no support will be offered for such versions. 43 | 44 | ### PHP Requirements 45 | --- 46 | This module utilises the **PHP SOAP** module. In order to connect to use our API you must have this PHP extension enabled. 47 | 48 | 49 | # Contributing 50 | If you are interested in contributing, and need some help getting started; please see our [contribution guide](CONTRIBUTING.md). 51 | 52 | # License 53 | This project is licensed under the GNU General Public License v3.0. See the [LICENSE](LICENSE) file for further information. 54 | -------------------------------------------------------------------------------- /modules/registrars/synergywholesaledomains/domaincor.tpl: -------------------------------------------------------------------------------- 1 | {if $error} 2 |
3 | {$error} 4 |
5 | {/if} 6 | {if $info} 7 |
8 | {$info} 9 |
10 | {/if} 11 | {if $external} 12 |

13 |
14 | {$code} 15 |
16 |



17 | {else} 18 |

Initiate Change of Registrant

19 |

A Change of Registrant for .AU domain names is the process of updating the eligibility information tied to the domain. This will begin the initial process of sending an email to the registrant email address. Details contained in the email will outline the steps required to complete the Change of Registrant process.


20 | 21 |
22 |

A Change of Registrant forces the domains renewal period to be reset.

23 |
24 | 25 | {if $cor} 26 |
27 |

A Change of Registrant invoice already exists for this domain. Invoice: {$cor}

28 |
29 | {/if} 30 | 31 | {if $pending_cor} 32 |
33 |

A Change of Registrant already exists for this domain, Please check your registrant email account.

34 |
35 | {/if} 36 | 37 | {if empty($pending_cor) && empty($cor)} 38 |
39 |
40 | 41 |
42 | 49 |
50 |
51 |
52 |
53 | 54 |
55 |
56 |
57 | {/if} 58 | {/if} 59 | -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | SW_API_HOSTNAME ?= api.synergywholesale.com 2 | SW_FRONTEND_HOSTNAME ?= manage.synergywholesale.com 3 | RELEASE_DATE := $(shell date '+%A, %B %d %Y') 4 | 5 | # Make sure sed replace works on Mac OSX 6 | SED_PARAM := 7 | ifeq ($(shell uname -s),Darwin) 8 | SED_PARAM += '' 9 | endif 10 | 11 | # In case the version tag isn't annotated, let's have a fallback 12 | VERSION := $(shell git describe --abbrev=0 2> /dev/null) 13 | ifneq ($(.SHELLSTATUS), 0) 14 | VERSION := $(shell git describe --tags 2> /dev/null) 15 | endif 16 | 17 | VERSION := $(firstword $(subst -, ,${VERSION})) 18 | 19 | build-assets: 20 | npm run-script build 21 | 22 | replace: 23 | sed -i${SED_PARAM} "s/{{VERSION}}/${VERSION}/g" "README.txt" 24 | sed -i${SED_PARAM} "s/{{VERSION}}/${VERSION}/g" "modules/registrars/synergywholesaledomains/whmcs.json" 25 | sed -i${SED_PARAM} "s/{{RELEASE_DATE}}/${RELEASE_DATE}/g" "README.txt" 26 | sed -i${SED_PARAM} "s/{{VERSION}}/${VERSION:v%=%}/g" "modules/registrars/synergywholesaledomains/hooks.php" 27 | sed -i${SED_PARAM} "s/{{VERSION}}/${VERSION:v%=%}/g" "modules/registrars/synergywholesaledomains/synergywholesaledomains.php" 28 | sed -i${SED_PARAM} "s/{{API}}/${SW_API_HOSTNAME}/g" "modules/registrars/synergywholesaledomains/synergywholesaledomains.php" 29 | sed -i${SED_PARAM} "s/{{FRONTEND}}/${SW_FRONTEND_HOSTNAME}/g" "modules/registrars/synergywholesaledomains/synergywholesaledomains.php" 30 | 31 | revert: 32 | sed -i${SED_PARAM} "s/${VERSION}/{{VERSION}}/g" "README.txt" 33 | sed -i${SED_PARAM} "s/${RELEASE_DATE}/{{RELEASE_DATE}}/g" "README.txt" 34 | sed -i${SED_PARAM} "s/${VERSION}/{{VERSION}}/g" "modules/registrars/synergywholesaledomains/whmcs.json" 35 | sed -i${SED_PARAM} "s/${VERSION:v%=%}/{{VERSION}}/g" "modules/registrars/synergywholesaledomains/hooks.php" 36 | sed -i${SED_PARAM} "s/${VERSION:v%=%}/{{VERSION}}/g" "modules/registrars/synergywholesaledomains/synergywholesaledomains.php" 37 | sed -i${SED_PARAM} "s/${SW_API_HOSTNAME}/{{API}}/g" "modules/registrars/synergywholesaledomains/synergywholesaledomains.php" 38 | sed -i${SED_PARAM} "s/${SW_FRONTEND_HOSTNAME}/{{FRONTEND}}/g" "modules/registrars/synergywholesaledomains/synergywholesaledomains.php" 39 | 40 | package: 41 | make replace 42 | zip -r "synergy-wholesale-domains-$(VERSION).zip" . -x \ 43 | '.DS_Store' '**/.DS_Store' '*.cache' '.git*' '*.md' 'Makefile' 'package.json' 'package-lock.json' \ 44 | 'composer.json' 'composer.lock' '*.xml' '**/synergywholesaledomains.css' '**/functions.js' \ 45 | 'vendor/*' 'node_modules/*' '.git/*' 'tests/*' 46 | make revert 47 | 48 | build: 49 | test -s node_modules/.bin/minify || npm install 50 | make build-assets 51 | make replace 52 | make package 53 | make revert 54 | 55 | test: 56 | test -s vendor/bin/phpcs || composer install 57 | ./vendor/bin/phpcs 58 | ./vendor/bin/phpunit 59 | test -s node_modules/.bin/minify || npm install 60 | npm run-script check-syntax 61 | 62 | tools: 63 | npm install 64 | composer install 65 | -------------------------------------------------------------------------------- /resources/domains/additionalfields.php: -------------------------------------------------------------------------------- 1 | "Registrant Name", "LangVar" => "autldregname", "Type" => "text", "Size" => "20", "Default" => "", "Required" => true,); 4 | $additionaldomainfields[".au"][] = array("Name" => "Registrant ID", "LangVar" => "autldregid", "Type" => "text", "Size" => "20", "Default" => "", "Required" => false,); 5 | $additionaldomainfields[".au"][] = array("Name" => "Registrant ID Type", "LangVar" => "autldregidtype", "Type" => "dropdown", "Options" => "ABN,ACN,Business Registration Number,Other", "Default" => "ABN",); 6 | $additionaldomainfields[".au"][] = array("Name" => "Eligibility Name", "LangVar" => "autldeligname", "Type" => "text", "Size" => "20", "Default" => "", "Required" => false,); 7 | $additionaldomainfields[".au"][] = array("Name" => "Eligibility Type", "LangVar" => "autldeligtype", "Type" => "dropdown", "Options" => "Citizen/Resident,Charity,Club,Commercial Statutory Body,Company,Incorporated Association,Industry Body,Non-profit Organisation,Other,Partnership,Pending TM Owner ,Political Party,Registered Business,Religious/Church Group,Sole Trader,Trade Union,Trademark Owner,Child Care Centre,Government School,Higher Education Institution,National Body,Non-Government School,Pre-school,Research Organisation,Training Organisation", "Default" => "Company",); 8 | $additionaldomainfields[".au"][] = array("Name" => "Eligibility ID", "LangVar" => "autldeligid", "Type" => "text", "Size" => "20", "Default" => "", "Required" => false,); 9 | $additionaldomainfields[".au"][] = array("Name" => "Eligibility ID Type", "LangVar" => "autldeligidtype", "Type" => "dropdown", "Options" => ",Australian Company Number (ACN),ACT Business Number,NSW Business Number,NT Business Number,QLD Business Number,SA Business Number,TAS Business Number,VIC Business Number,WA Business Number,Trademark (TM),Other - Used to record an Incorporated Association number,Australian Business Number (ABN)", "Default" => "",); 10 | $additionaldomainfields[".au"][] = array("Name" => "Eligibility Reason", "LangVar" => "autldeligreason", "Type" => "radio", "Options" => "Domain name is an Exact Match Abbreviation or Acronym of your Entity or Trading Name.,Close and substantial connection between the domain name and the operations of your Entity.", "Default" => "Domain name is an Exact Match Abbreviation or Acronym of your Entity or Trading Name.",); 11 | 12 | // Eligibility Type specific to .com.au, .asn.au, .org.au, .net.au 13 | $additionaldomainfields[".com.au"][] = array("Name" => "Eligibility Type", "LangVar" => "autldeligtype", "Type" => "dropdown", "Options" => "Charity,Club,Commercial Statutory Body,Company,Incorporated Association,Industry Body,Non-profit Organisation,Other,Partnership,Pending TM Owner ,Political Party,Registered Business,Religious/Church Group,Sole Trader,Trade Union,Trademark Owner,Child Care Centre,Government School,Higher Education Institution,National Body,Non-Government School,Pre-school,Research Organisation,Training Organisation", "Default" => "Company",); 14 | $additionaldomainfields[".net.au"][] = array("Name" => "Eligibility Type", "LangVar" => "autldeligtype", "Type" => "dropdown", "Options" => "Charity,Club,Commercial Statutory Body,Company,Incorporated Association,Industry Body,Non-profit Organisation,Other,Partnership,Pending TM Owner ,Political Party,Registered Business,Religious/Church Group,Sole Trader,Trade Union,Trademark Owner,Child Care Centre,Government School,Higher Education Institution,National Body,Non-Government School,Pre-school,Research Organisation,Training Organisation", "Default" => "Company",); 15 | $additionaldomainfields[".org.au"][] = array("Name" => "Eligibility Type", "LangVar" => "autldeligtype", "Type" => "dropdown", "Options" => "Charity,Club,Commercial Statutory Body,Company,Incorporated Association,Industry Body,Non-profit Organisation,Other,Partnership,Pending TM Owner ,Political Party,Registered Business,Religious/Church Group,Sole Trader,Trade Union,Trademark Owner,Child Care Centre,Government School,Higher Education Institution,National Body,Non-Government School,Pre-school,Research Organisation,Training Organisation", "Default" => "Company",); 16 | $additionaldomainfields[".asn.au"][] = array("Name" => "Eligibility Type", "LangVar" => "autldeligtype", "Type" => "dropdown", "Options" => "Charity,Club,Commercial Statutory Body,Company,Incorporated Association,Industry Body,Non-profit Organisation,Other,Partnership,Pending TM Owner ,Political Party,Registered Business,Religious/Church Group,Sole Trader,Trade Union,Trademark Owner,Child Care Centre,Government School,Higher Education Institution,National Body,Non-Government School,Pre-school,Research Organisation,Training Organisation", "Default" => "Company",); 17 | 18 | // Exclude fields that are not relevant to id.au 19 | $additionaldomainfields[".id.au"][] = array("Name" => "Registrant Name", "LangVar" => "autldregname", "Type" => "text", "Size" => "20", "Default" => "", "Required" => true,); 20 | $additionaldomainfields[".id.au"][] = array("Name" => "Eligibility Type", "LangVar" => "autldeligtype", "Type" => "dropdown", "Options" => ",Citizen/Resident", "Required" => true,); 21 | $additionaldomainfields[".id.au"][] = array("Name" => "Registrant ID", "Remove" => true); 22 | $additionaldomainfields[".id.au"][] = array("Name" => "Registrant ID Type", "Remove" => true); 23 | $additionaldomainfields[".id.au"][] = array("Name" => "Eligibility Name", "Remove" => true); 24 | $additionaldomainfields[".id.au"][] = array("Name" => "Eligibility ID", "Remove" => true); 25 | $additionaldomainfields[".id.au"][] = array("Name" => "Eligibility ID Type", "Remove" => true); 26 | $additionaldomainfields[".id.au"][] = array("Name" => "Eligibility Reason", "Remove" => true); 27 | -------------------------------------------------------------------------------- /modules/registrars/synergywholesaledomains/domainoptions.tpl: -------------------------------------------------------------------------------- 1 | {if $error} 2 |
3 | {$error} 4 |
5 | {/if} 6 | {if $info} 7 |
8 | {$info} 9 |
10 | {/if} 11 | {if $external} 12 |

13 |
14 | {$code} 15 |
16 |



17 | {else} 18 | {$canUseDnsManagement=($tlddnsmanagement == 1 or $dnsmanagement == 1)} 19 | {$canUseEmailForwarding=($tldemailforwarding == 1 or $emailforwarding == 1)} 20 | 21 |

Set DNS Type

22 | {if ($tlddnsmanagement == 1 or $tldemailforwarding == 1) and ($dnsmanagement == 0 or $emailforwarding == 0)} 23 |
24 | NOTICE: If you wish to utilise DNS Hosting, create email forwarders and use the URL forwarding options please visit the addons menu to activate the required addon first. 25 |
26 | {/if} 27 |

Set and manage your DNS configuration.

28 |

You may choose from: {', '|implode:$availableDnsConfigTypes}

29 |
30 |
31 | 32 | 33 |
34 | 35 |   36 | 46 |
47 | 48 | {if $currentDnsConfigType|in_array:[1, 5]} 49 |

To manage your Nameservers, please visit the Nameservers menu.

50 | {/if} 51 | 52 | {if $currentDnsConfigType == 2} 53 |

To manage your Mail forwarding records, please visit the Email Forwarding menu.

54 | {if $dnsmanagement == 1} 55 |

To manage your DNS records or URL forwarding records, please visit the DNS Management menu.

56 | {/if} 57 | {/if} 58 | 59 | {if $currentDnsConfigType == 4} 60 |

To manage your DNS records, please visit the DNS Management menu.

61 | {/if} 62 |
63 |
64 |
65 | WARNING: When an alternate DNS configuration type is selected any existing DNS records, including email or URL forwarding settings, will be deleted and the DNS zone will be reset. Unnecessary changes may have an undesirable outcome causing your website and emails to go offline. 66 |
67 | 68 | {if $tld eq "xxx"} 69 |

Update .XXX Membership Details

70 |

In order to have your .XXX domain name resolve on the internet you will need to complete ICM Registry's free membership appliation to become a member of the Sponsored Community. Once your membership ID has been issued by ICM Registry you can assign it to the domain name using the options below.

71 |
72 |
73 | 74 | 75 |
76 | 77 |
78 | 79 |
80 |
81 |
82 |
83 | 84 |
85 |
86 |
87 |
88 | {/if} 89 | 90 | {if $icannStatus ne "N/A" and $icannStatus ne "Verified"} 91 |

Resend WHOIS Verification Email

92 |

If you need to resend the ICANN WHOIS Verification email please use the options below. Failure to complete verification on your WHOIS contact information may result in your domain name being suspended.

93 |
94 |
95 | 96 | 97 |
98 | 99 |
100 |
101 | {/if} 102 | {/if} 103 | -------------------------------------------------------------------------------- /modules/registrars/synergywholesaledomains/domaindnssec.tpl: -------------------------------------------------------------------------------- 1 | {if $error} 2 |
3 | {$error} 4 |
5 | {/if} 6 | {if $info} 7 |
8 | {$info} 9 |
10 | {/if} 11 | {if $external} 12 |

13 |
14 | {$code} 15 |
16 |



17 | {else} 18 | {if $records|@count eq 0} 19 |
20 | There are no DNSSEC security records configured on the domain name. 21 |
22 | {/if} 23 | {if $records|@count gt 0} 24 |

List DNSSEC DS Records

25 |

The following DNSSEC security records exist on your domain name. To prevent your domain name becoming unavailable on the internet please ensure the records below are correct and valid. 26 |

27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | {foreach $records as $record} 39 | 40 | {foreach $record as $key => $value} 41 | {if $key eq "keyTag"} {/if} 42 | {if $key eq "algorithm"} {/if} 43 | {if $key eq "digest"} {/if} 44 | {if $key eq "digestType"} {/if} 45 | {if $key eq "UUID"} {$uuid = $value}{/if} 46 | {/foreach} 47 | 58 | 59 | {/foreach} 60 | 61 |
Key TagAlgorithmDigestDigest TypeAction
{$value}
{$value}
{$value}
{$value}
48 |
49 | 50 | 51 |
52 |
53 | 54 |
55 |
56 |
57 |
62 |
63 | {/if} 64 |

Add DNSSEC DS Record

65 |

DNSSEC is a set of security extensions to DNS that provides the means for authenticating DNS records. Use the options below to create new DNSSEC DS records. Please ensure that the information you supply below is correct as invalid data will result in your domain name becoming unavailable on the internet.


66 |
67 | 68 |
69 | 70 |
71 | 72 |
73 |
74 |
75 | 76 |
77 | 91 |
92 |
93 |
94 | 95 |
96 | 97 |
98 |
99 |
100 | 101 |
102 | 109 |
110 |
111 |
112 |
113 | 114 |
115 |
116 |
117 | {/if} -------------------------------------------------------------------------------- /modules/registrars/synergywholesaledomains/domainchildhosts.tpl: -------------------------------------------------------------------------------- 1 | {if $error} 2 |
3 | {$error} 4 |
5 | {/if} 6 | {if $info} 7 |
8 | {$info} 9 |
10 | {/if} 11 | {if $external} 12 |

13 |
14 | {$code} 15 |
16 |



17 | {else} 18 | 19 | {if $manageHost} 20 | {if $records|@count gt 0} 21 |

Manage Child Host [{$hostname}]

22 |

View and manage the IP addresses assigned to the Child Host. At least one IP address needs to be assigned to the Child Host. 23 |

24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | {foreach $records as $key => $ipArray} 34 | {if $key eq $hostname} 35 | {assign var="count" value=$ipArray|@count} 36 | {foreach $ipArray as $ipRecord} 37 | 38 | 39 | 40 | 51 | 52 | {/foreach} 53 | {/if} 54 | {/foreach} 55 | 56 |
HostnameIP AddressAction
{$key}
{$ipRecord}
41 |
42 | 43 | 44 | {if $count gt 1} 45 | 46 | {else} 47 | 48 | {/if} 49 |
50 |
57 |
58 | {/if} 59 |

Add New IP Address

60 |

Add a new IP address to the Child Host record. Both IPv4 and IPv6 records are supported.


61 |
62 | 63 |
64 | 65 |
66 | 67 |
68 |
69 |
70 |
71 | 72 |
73 |
74 |
75 | {else} 76 | 77 | {if $records|@count gt 0} 78 |

Manage Child Host Records

79 |

Manage the current Child Host Records assigned to this domain name. 80 |

81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | {foreach $records as $key => $ipArray} 90 | 91 | 92 | 99 | 100 | {/foreach} 101 | 102 |
HostnameAction
{$key}
93 |
94 | 95 | 96 | 97 |
98 |
103 |
104 | {/if} 105 |

Add New Child Host Record

106 |

Use the options below to create new child host records for this domain name.

107 |
108 | IMPORTANT: When adding new child host records please only enter the hostname you wish to create. For 'ns1.yourdomain.com' you would only need to enter 'ns1'. 109 |
110 |
111 |
112 | 113 |
114 | 115 |
116 |
117 |
118 | 119 |
120 | 121 |
122 |
123 |
124 |
125 | 126 |
127 |
128 |
129 | {/if} 130 | {/if} 131 | {if $manageHost} 132 |
133 | 134 |

135 |
136 | {/if} -------------------------------------------------------------------------------- /modules/registrars/synergywholesaledomains/hooks.php: -------------------------------------------------------------------------------- 1 | getChild('Domain Details Management'); 27 | 28 | // Make sure the domain belongs to the Synergy Wholesale Domains module 29 | if (!is_null($menu) && 'synergywholesaledomains' === $context->registrarModuleName) { 30 | if (!is_null($menu->getChild('Manage Private Nameservers'))) { 31 | $menu->removeChild('Manage Private Nameservers'); 32 | } 33 | 34 | if ($context->status === 'Active') { 35 | $settings = $context->getRegistrarInterface()->getSettings(); 36 | 37 | $vars = [ 38 | 'resellerID' => $settings['resellerID'], 39 | 'apiKey' => $settings['apiKey'], 40 | 'domainName' => $context->domain 41 | ]; 42 | 43 | try { 44 | $info = synergywholesaledomains_apiRequest('domainInfo', [], $vars); 45 | 46 | if (!in_array($info['dnsConfig'], [1, 5]) && !is_null($menu->getChild('Modify Nameservers'))) { 47 | $menu->removeChild('Modify Nameservers'); 48 | } 49 | 50 | if ($context->hasDnsManagement && !in_array($info['dnsConfig'], [2, 4]) && !is_null($menu->getChild('Manage DNS Host Records'))) { 51 | $menu->removeChild('Manage DNS Host Records'); 52 | } 53 | 54 | if ($context->hasEmailForwarding && !in_array($info['dnsConfig'], [2]) && !is_null($menu->getChild('Manage Email Forwarding'))) { 55 | $menu->removeChild('Manage Email Forwarding'); 56 | } 57 | } catch (\Exception $e) { 58 | if (!is_null($menu->getChild('Modify Nameservers'))) { 59 | $menu->removeChild('Modify Nameservers'); 60 | } 61 | 62 | if (!is_null($menu->getChild('Manage DNS Host Records'))) { 63 | $menu->removeChild('Manage DNS Host Records'); 64 | } 65 | 66 | if (!is_null($menu->getChild('Manage Email Forwarding'))) { 67 | $menu->removeChild('Manage Email Forwarding'); 68 | } 69 | } 70 | 71 | // Overwrite Menu Item URL for DNS and Email Forwarding 72 | if (!is_null($menu->getChild('Manage DNS Host Records'))) { 73 | $dnsUrl = "clientarea.php?action=domaindetails&id={$context->id}&modop=custom&a=manageDNSURLForwarding"; 74 | 75 | $menu->getChild('Manage DNS Host Records') 76 | ->setUri($dnsUrl) 77 | ->setCurrent(synergywholesaledomains_getFullUrl($dnsUrl) === htmlspecialchars_decode($_SERVER['REQUEST_URI'])); 78 | } 79 | 80 | if (!is_null($menu->getChild('Manage Email Forwarding'))) { 81 | $forwardingUrl = "clientarea.php?action=domaindetails&id={$context->id}&modop=custom&a=manageEmailForwarding"; 82 | 83 | $menu->getChild('Manage Email Forwarding') 84 | ->setUri($forwardingUrl) 85 | ->setCurrent(synergywholesaledomains_getFullUrl($forwardingUrl) === htmlspecialchars_decode($_SERVER['REQUEST_URI'])); 86 | } 87 | } 88 | 89 | 90 | if (preg_match('/\.au$/', $context->domain) && !is_null($menu->getChild('Registrar Lock Status'))) { 91 | $menu->removeChild('Registrar Lock Status'); 92 | } 93 | } 94 | }); 95 | 96 | /** 97 | * Override the DNS Management page to link to our custom one 98 | */ 99 | add_hook('ClientAreaPageDomainDNSManagement', 1, function (array $vars) { 100 | 101 | $domain_id = $vars['domainid']; 102 | $registrarModuleName = null; 103 | 104 | if (isset($vars['dnsrecords']['vars']['registrarModule'])) { 105 | $registrarModuleName = $vars['dnsrecords']['vars']['registrarModule']; 106 | } 107 | 108 | if ('synergywholesaledomains' === $registrarModuleName) { 109 | header("Location: clientarea.php?action=domaindetails&id={$domain_id}&modop=custom&a=manageDNSURLForwarding&token={$vars['token']}"); 110 | } 111 | }); 112 | 113 | /** 114 | * Override the Email Forwarding page to link to our custom one 115 | */ 116 | add_hook('ClientAreaPageDomainEmailForwarding', 1, function (array $vars) { 117 | 118 | $domain_id = $vars['domainid']; 119 | $registrarModuleName = null; 120 | 121 | if (isset($vars['emailforwarders']['vars']['registrarModule'])) { 122 | $registrarModuleName = $vars['emailforwarders']['vars']['registrarModule']; 123 | } 124 | 125 | if ('synergywholesaledomains' === $registrarModuleName) { 126 | header("Location: clientarea.php?action=domaindetails&id={$domain_id}&modop=custom&a=manageEmailForwarding&token={$vars['token']}"); 127 | } 128 | }); 129 | 130 | /** 131 | * We've had reports of things not working/loading properly when they're using Cloudflare Rocket Loader, so let's add an exemption. 132 | * @see https://support.cloudflare.com/hc/en-us/articles/200169436-How-can-I-have-Rocket-Loader-ignore-specific-JavaScripts- 133 | */ 134 | add_hook('ClientAreaHeadOutput', 1, function (array $vars) { 135 | return str_replace('{WEB_ROOT}', $vars['WEB_ROOT'], ' 136 | 137 | 138 | 139 | 140 | '); 141 | }); 142 | 143 | 144 | /* 145 | * Remove the "Domain Currently Unlocked!" error message on the domain overview for TLDs that don't support registrar lock (such as .au) 146 | */ 147 | add_hook('ClientAreaPageDomainDetails', 1, function (array $vars) { 148 | 149 | $menu = Menu::context('domain'); 150 | 151 | if (preg_match('/\.au$/', $menu->domain) && 'synergywholesaledomains' === $menu->registrar) { 152 | // Required to hide the error message 153 | $vars['managementoptions']['locking'] = false; 154 | $vars['lockstatus'] = false; 155 | 156 | return $vars; 157 | } 158 | }); 159 | 160 | add_hook('InvoicePaid', 1, function($vars) { 161 | // Check if the invoice has any Cor 162 | try { 163 | $cor = Capsule::table('tbldomains_extra') 164 | ->where([ 165 | ['name', "cor_{$vars['invoiceid']}"], 166 | ]) 167 | ->first(); 168 | 169 | // Get Domains details from Cor 170 | if (!empty($cor)) { 171 | $domain = Domain::find($cor->domain_id); 172 | } 173 | } catch (\Exception $e) { 174 | logModuleCall('synergywholesaledomains', 'initiateAuCor', 'Select DB', $e->getMessage()); 175 | return [ 176 | 'error' => $e->getMessage(), 177 | ]; 178 | } 179 | 180 | // If a cor and domain was found, and it's registrar is synergy 181 | if (!empty($cor) && !empty($domain) && $domain->registrar === 'synergywholesaledomains') { 182 | try { 183 | // Get reseller Id 184 | $resellerId = Capsule::table('tblregistrars') 185 | ->where([ 186 | ['registrar', 'synergywholesaledomains'], 187 | ['setting', 'resellerID'] 188 | ]) 189 | ->first(); 190 | 191 | // Decrypt value so it's usable 192 | $resellerIdDecrypt = localAPI('DecryptPassword', ['password2' => $resellerId->value]); 193 | 194 | // Get Api Key 195 | $apiKey = Capsule::table('tblregistrars') 196 | ->where([ 197 | ['registrar', 'synergywholesaledomains'], 198 | ['setting', 'apiKey'] 199 | ]) 200 | ->first(); 201 | 202 | // Decrypt value so it's usable 203 | $apiKeyDecrypt = localAPI('DecryptPassword', ['password2' => $apiKey->value]); 204 | 205 | } catch (\Exception $e) { 206 | logModuleCall('synergywholesaledomains', 'initiateAuCor', 'Select DB', $e->getMessage()); 207 | return [ 208 | 'error' => $e->getMessage(), 209 | ]; 210 | } 211 | 212 | 213 | // Pass details to initiateAuCor function in the Synergy Module 214 | require_once('synergywholesaledomains.php'); 215 | try { 216 | synergywholesaledomains_initiateAuCor([ 217 | 'resellerID' => $resellerIdDecrypt['password'], 218 | 'apiKey' => $apiKeyDecrypt['password'], 219 | 'domainid' => $cor->domain_id, 220 | 'renewal' => $cor->value, 221 | 'domainname' => $domain->domain 222 | ]); 223 | 224 | // Delete CoR meta 225 | Capsule::table('tbldomains_extra') 226 | ->where([ 227 | ['name', "cor_{$vars['invoiceid']}"], 228 | ]) 229 | ->delete(); 230 | } catch (\Exception $e) { 231 | logModuleCall('synergywholesaledomains', 'initiateAuCorHook', 'Initiate CoR', $e->getMessage()); 232 | return [ 233 | 'error' => $e->getMessage(), 234 | ]; 235 | } 236 | } 237 | }); 238 | 239 | add_hook('AfterRegistrarRegistration', 1, function ($vars) { 240 | // Only fire for the SWS registrar module 241 | if ($vars['params']['registrar'] == 'synergywholesaledomains') { 242 | // If defaultDnsConfig is set 243 | if (!empty($vars['params']['defaultDnsConfig'])) { 244 | // If defaultDnsConfig is Parked, FreeDns or Forwarding, SWS Account Default, Legacy Hosting, Wholesale Hosting 245 | if (in_array($vars['params']['defaultDnsConfig'], ['2', '3', '4', '5', '6', '7'])) { 246 | synergywholesaledomains_apiRequest('updateNameServers', $vars['params'], [ 247 | 'domainName' => $vars['params']['domainName'], 248 | 'dnsConfigType' => $vars['params']['defaultDnsConfig'], 249 | 'nameServers' => [ 250 | 'ns1.nameserver.net.au', 251 | 'ns2.nameserver.net.au', 252 | 'ns3.nameserver.net.au', 253 | ] 254 | ], false); 255 | } 256 | 257 | // If defaultDnsConfig is FreeDns or Forwarding 258 | if ($vars['params']['defaultDnsConfig'] == '4') { 259 | if ($vars['params']['enableDnsManagement']) { 260 | Capsule::table('tbldomains') 261 | ->where('id', $vars['params']['domainid']) 262 | ->update(['dnsmanagement' => 1]); 263 | } 264 | } 265 | 266 | if ($vars['params']['defaultDnsConfig'] == '2') { 267 | if ($vars['params']['enableDnsManagement']) { 268 | Capsule::table('tbldomains') 269 | ->where('id', $vars['params']['domainid']) 270 | ->update(['dnsmanagement' => 1]); 271 | } 272 | 273 | if ($vars['params']['enableEmailForwarding']) { 274 | Capsule::table('tbldomains') 275 | ->where('id', $vars['params']['domainid']) 276 | ->update(['emailforwarding' => 1]); 277 | } 278 | } 279 | 280 | // If defaultDnsConfig is customNS 281 | if ($vars['params']['defaultDnsConfig'] == '1') { 282 | synergywholesaledomains_apiRequest('updateNameServers', $vars['params'], [ 283 | 'domainName' => $vars['params']['domainName'], 284 | 'dnsConfigType' => $vars['params']['defaultDnsConfig'], 285 | 'nameServers' => synergywholesaledomains_helper_getNameservers($vars['params']), 286 | ], false); 287 | } 288 | } 289 | } 290 | }); 291 | 292 | /* 293 | * Sync the domain with what's on Synergy, This will fix issues with domains that get statuses like Pending Registration. 294 | */ 295 | add_hook('AfterRegistrarRegistration', 1, function ($vars) { 296 | // Only fire for the SWS registrar module 297 | if ($vars['params']['registrar'] == 'synergywholesaledomains') { 298 | synergywholesaledomains_Sync($vars['params']); 299 | 300 | } 301 | }); -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Change Log 2 | 3 | Synergy Wholesale WHMCS Domains Module 4 | 5 | ## Unreleased Version [Updated xx/xx/20xx] 6 | ### Added 7 | - 8 | 9 | ### Changed 10 | - 11 | 12 | ### Fixed 13 | - 14 | 15 | ### Removed 16 | - 17 | 18 | ## 2.6.0 [Updated 28/07/2025] 19 | 20 | ### Fixed 21 | - CSRF missing from more ajax drop down menu's 22 | 23 | ### Added 24 | - Resend approval email button on the admin service page 25 | 26 | ## 2.5.6 [Updated 24/07/2025] 27 | 28 | ### Fixed 29 | - DNS Management Menu 30 | 31 | ## 2.5.5 [Updated 18/06/2025] 32 | 33 | ### Fixed 34 | - Normalise pricing based on minimum number of year 35 | 36 | ## 2.5.4 [Updated 12/05/2025] 37 | 38 | ### Fixed 39 | - CSRF working when using query params 40 | 41 | ## 2.5.3 [Updated 09/05/2025] 42 | 43 | ### Fixed 44 | - CSRF not getting passed through when using the Client pages 45 | 46 | ## 2.5.2 [Updated 13/02/2025] 47 | 48 | ### Fixed 49 | - Importing domains not setting eligibility values if the equivalent database entry does not exist. 50 | 51 | ## 2.5.1 [Updated 12/02/2025] 52 | 53 | ### Changed 54 | - When a Change of Registrant request fails a module queue entry will be made about it. 55 | - Display the number of years the Change of Registrant has been requested for on the invoice line item. 56 | 57 | ### Fixed 58 | - Various issues sorrounding WHMCS's implemention of AU eligibility. 59 | 60 | ## 2.5.0 [Updated 08/03/2024] 61 | 62 | ### Removed 63 | - No longer provide `whois.json` file as this method of performing domain lookups has been deprecated and removed from Synergy Wholesale's offerings. 64 | 65 | ## 2.4.8 [Updated 22/02/2024] 66 | 67 | ### Changed 68 | - Updated error handling to detect multiple different error messages from upcoming API releases 69 | 70 | ## 2.4.7 [Updated 07/12/2022] 71 | 72 | ### Fixed 73 | - .au not having the option to initiate a Change of Registrant request 74 | - .au not having its transfer price set to $0.00 when syncing the TLD pricing from Syerngy Wholesale. 75 | 76 | ## 2.4.6 [Updated 30/09/2022] 77 | 78 | ### Changed 79 | - additionalfields.php has been updated to remove direct .au priority contact information, this will now only be displayed in your WHMCS admin area. 80 | 81 | ## 2.4.5 [Updated 06/09/2022] 82 | 83 | ### Added 84 | - Additional validation has been added for the majority of fields 85 | 86 | ### Changed 87 | - Improve compatibility with future versions of Synergy Wholesale API 88 | - SRV Weight and Port Fields are now Number fields that ensure the value is valid 89 | - MX and SRV Priority fields are now Number fields that ensure the value is valid 90 | - The Priority field is now disabled when the record type is not MX or SRV 91 | - All record type's TTL field is now a Number field that ensure the valid is valid 92 | 93 | ### Fixed 94 | - Issue when adding URL forwarder the input fields would all become blank 95 | - Potentional regex injection entrypoint 96 | 97 | ## 2.4.4 [Updated 26/08/2022] 98 | 99 | ### Fixed 100 | - .au domains not correctly respecting the "force .au renewal" setting. 101 | - .au and .uk domains not being correctly respected as .au or .uk domains when importing TLD pricing and settings from Synergy Wholesale. 102 | 103 | ## 2.4.3 [Updated 19/08/2022] 104 | 105 | ### Fixed 106 | - When using Client's contact details to update domain contacts, the origanisation field would not be correctly sent. 107 | 108 | ## 2.4.2 [Updated 01/08/2022] 109 | ### Fixed 110 | - synergywholesaledomains_getFullUrl function not being defined error when accessing domain management pages. 111 | 112 | ## 2.4.1 [Updated 26/07/2022] 113 | ### Changed 114 | - Certain options related to DNS and Nameservers are now hidden in the WHMCS client area depending upon the current DNS Config Type 115 | - Previous restrictions on requring DNS management and Email Forwarding management addons be enabled on the domain still apply 116 | - When creating a change of registrant request the user is now redirected to the invoice 117 | 118 | ### Fixed 119 | - When DNS Config Type set on domain doesn't exist in WHMCS module it would display incorrectly as "DNS Hosting" 120 | - URL forwarding displaying on DNS page when URL forwarding was not enabled 121 | - Editing or deleting newly added Email Forwarded not working until page was refereshed 122 | - Manage DNS Records and Manage Email Forwarding not displaying as the currently selected page in sidebar navigation 123 | 124 | ## 2.4.0 [Updated 09/05/2022] 125 | ### Fixed 126 | - Organisation field not displaying on Domain Contact form 127 | - Domains not syncing their correct status when in a transfer state 128 | - Issue where DNS and URL Forwarding would display on side menu despite not being enabled on Domain Name 129 | - Changing DNS configuration type would display "undefined" instead of the correct name 130 | - Fix potential issue with logging API requests 131 | 132 | ## 2.3.1 [Updated 30/03/2022] 133 | ### Fixed 134 | - Syncing .au domains that are currently pending application or pending identity verification 135 | 136 | ## 2.3.0 [Updated 22/03/2022] 137 | ### Added 138 | - Direct .au support 139 | - additionalfields.php for .au and direct .au priority application data 140 | 141 | ## 2.2.10 [Updated 04/10/2021] 142 | ### Fixed 143 | - Improved Domains Registrations page rendering time 144 | 145 | ## 2.2.9 [Updated 30/09/2021] 146 | ### Fixed 147 | - Fixed an issue initiating Change of Registrant requests 148 | 149 | ## 2.2.8 [Updated 27/09/2021] 150 | 151 | ### Fixed 152 | - Fixed DNS Option showing blank if TLD and Domain had management disabled, will now display a error banner. 153 | 154 | ## 2.2.7 [Updated 12/08/2021] 155 | 156 | ### Added 157 | - Added support for CoR for .au domains 158 | 159 | 160 | ## 2.2.6 [Updated 11/08/2021] 161 | 162 | ### Added 163 | - Added support for default DNS options for newly registered domains 164 | 165 | ## 2.2.5 [Updated 11/08/2021] 166 | 167 | ### Fixed 168 | - Fixed Typo with Newline not getting interpreted 169 | - Fixed 'on sale' domain register pricing. 170 | - Fixed domains sync with a Synergy status 'Pending Registration' getting set with wrong status within WHMCS 171 | 172 | ### Changed 173 | - Domains successfully registered will now automatically sync with Synergy 174 | 175 | 176 | ## 2.2.2 [Updated 12/03/2021] 177 | 178 | ### Fixed 179 | - Fixed DNS records being deleted after editing 180 | 181 | ## 2.2.1 [Updated 14/01/2021] 182 | ### Changed 183 | - Changed DNS and Email Forwarding management options to resepect TLD level options. Fixes [#37](https://github.com/SynergyWholesale/WHMCS-Domains-Module/issues/37) 184 | 185 | ## 2.2.0 [Updated 13/01/2021] 186 | 187 | ### Fixed 188 | - Fixed styling issues regarding the use of Font-Awesome icons 189 | - Fixed styling issues regarding to WHMCS 8.1 using Bootstrap 4 Fixes [#49](https://github.com/SynergyWholesale/WHMCS-Domains-Module/issues/49) 190 | 191 | ## 2.1.12 [Updated 03/12/2020] 192 | ### Fixed 193 | - Fixed .uk domain transfers not providing contact set 194 | 195 | ## 2.1.11 [Updated 29/10/2020] 196 | ### Fixed 197 | - Fixed admin and billing contacts not being updatable. Fixes [#45](https://github.com/SynergyWholesale/WHMCS-Domains-Module/issues/45) 198 | 199 | ## 2.1.10 [Updated 09/10/2020] 200 | ### Fixed 201 | - Fixed transfer domain conditions incorrectly testing against the SLD and not the TLD. 202 | 203 | ## 2.1.9 [Updated 25/08/2020] 204 | ### Fixed 205 | - Fixed internal transfers not being renewed upon transfer-in. Fixes [#33](https://github.com/SynergyWholesale/WHMCS-Domains-Module/issues/33) 206 | 207 | 208 | ## 2.1.8 [Updated 27/07/2020] 209 | ### Added 210 | - Added whmcs.json file. Fixes [#24](https://github.com/SynergyWholesale/WHMCS-Domains-Module/issues/24) 211 | 212 | ### Fixed 213 | - Fixed an issue syncing Rememption/Grace fees days. Fixes [#25](https://github.com/SynergyWholesale/WHMCS-Domains-Module/issues/25) [#26](https://github.com/SynergyWholesale/WHMCS-Domains-Module/issues/26) 214 | 215 | ## 2.1.7 [Updated 26/05/2020] 216 | ### Fixed 217 | - Fixed an issue with updating technical contacts. Fixes [#21](https://github.com/SynergyWholesale/WHMCS-Domains-Module/issues/21) 218 | 219 | ## 2.1.6 [Updated 14/05/2020] 220 | 221 | ### Fixed 222 | - Fixed an unclosed quote in the header when importing a JS asset. Fixes [#16](https://github.com/SynergyWholesale/WHMCS-Domains-Module/issues/16) 223 | 224 | ## 2.1.5 [Updated 13/05/2020] 225 | 226 | ### Fixed 227 | - Fixed domain sync not working on transferred away domains. Fixes [#14](https://github.com/SynergyWholesale/WHMCS-Domains-Module/issues/14) 228 | 229 | ## 2.1.4 [Updated 20/04/2020] 230 | 231 | ### Fixed 232 | - Fixed Registrar Lock option displaying for .au domain names. Fixes [#8](https://github.com/SynergyWholesale/WHMCS-Domains-Module/issues/8) 233 | 234 | ## 2.1.3 [Updated 16/04/2020] 235 | 236 | ### Fixed 237 | - Fixed error "Registry Error: Data missing" on pending domain transfers in WHMCS versions 7.6 and later. Fixes [#10](https://github.com/SynergyWholesale/WHMCS-Domains-Module/issues/10) 238 | - Fixed transfer price for .au domains on pricing import. The transfer price will be set to "0.00" for all .au domains. Fixes [#9](https://github.com/SynergyWholesale/WHMCS-Domains-Module/issues/9) 239 | - Fixed style sheet rules conflicting with themes by prefixing any CSS rules with `sw-`. Fixes [#7](https://github.com/SynergyWholesale/WHMCS-Domains-Module/issues/7) 240 | 241 | ### Changed 242 | - Updated `Makefile` and `hooks.php` to insert module version as a parameter to prevent browsers loading cached assets after new releases. 243 | 244 | ## 2.1.2 [Updated 30/03/2020] 245 | ### Fixed 246 | - Fix introduced type error: Carbon\Carbon provided, expected WHMCS\Carbon 247 | 248 | ## 2.1.1 [Updated 30/03/2020] 249 | ### Fixed 250 | - Fixed "Get EPP Code" not displaying the EPP Code on screen. Fixes [#6](https://github.com/SynergyWholesale/WHMCS-Domains-Module/issues/6) 251 | 252 | 253 | ## 2.1.0 [Updated 25/03/2020] 254 | ### Added 255 | - Added support for [GetDomainInformation](https://developers.whmcs.com/domain-registrars/domain-information/) method for newer WHMCS 7.6+. This should improve load times by reducing the number of required API calls required. 256 | - Added support for [GetTldPricing](https://developers.whmcs.com/domain-registrars/tld-pricing-sync/) to enable the syncing of TLD pricing and settings. This feature is available in WHMCS 7.10+ Fixes [#4](https://github.com/SynergyWholesale/WHMCS-Domains-Module/issues/4). 257 | 258 | ## Fixed 259 | - Fixed DNS Management page not loading properly when Cloudflare Rocket Loader is active. 260 | 261 | ## Changed 262 | - Replaced the Synergy Wholesale logo to a higher resolution and white background instead 263 | 264 | ## 2.0.2 [Updated 18/02/2020] 265 | ### Changed 266 | - PHP Version sent in API requests no longer include the `[extra]` version details 267 | 268 | ### Fixed 269 | - Fixed "Next Due Date" not accounting for `Sync Next Due Date` setting on domain sync. Fixes [#1](https://github.com/SynergyWholesale/WHMCS-Domains-Module/issues/2) 270 | 271 | ## 2.0.1 [Updated 07/02/2020] 272 | ### Fixed 273 | - Fixed support for PHP 7.2 and below. Fixes [#1](https://github.com/SynergyWholesale/WHMCS-Domains-Module/issues/1) 274 | 275 | ## 2.0.0 [Updated 21/02/2020] 276 | ### Added 277 | - Premium domain support for registration, transfers and renewal 278 | - Premium detection to the domain sync 279 | - Domain "Push" button to admin panel. Allows approval of outbound transfers from within WHMCS. 280 | - WHMCS Module Version, WHMCS Version, and PHP Version to each API request for analytics. 281 | - Domain sync will update the status of ID Protection in WHMCS 282 | 283 | ### Changed 284 | - Completed a refactor of the module 285 | - Merged and (lightely) tidied up templates, CSS, and JS 286 | - Replaced green "pencil" for save/update DNS/URL/Email management buttons with a tick 287 | 288 | ### Removed 289 | - Removed `gears.gif` loader 290 | 291 | ## 1.9.16 [Updated 18/09/2019] 292 | ### Added 293 | - Added `specialConditionsAgree` parameter on to domain registration API request. 294 | 295 | ## 1.9.15 [Updated 03/09/2019] 296 | ### Fixed 297 | - Domain sync now factors `DomainSyncNextDueDateDays` into the domain expiry date 298 | 299 | ## 1.9.14 [Updated 22/05/2019] 300 | ### Fixed 301 | - Fixed a bug where `whois.json` wouldn't update when WHMCS is installed in a sub directory 302 | 303 | ## 1.9.13 [Updated 10/05/2019] 304 | ### Fixed 305 | - Asset paths now use `$WEB_ROOT` variable, now they can be fetched when WHMCS is not in web root. 306 | 307 | ## 1.9.12 [Updated 14/02/2019] 308 | ### Fixed 309 | - Check if renewal is required before submitting domain for transfer 310 | 311 | ## 1.9.11 [Updated 06/02/2019] 312 | ### Added 313 | - Force sync option added to force pull the latest WHOIS.json on registrar config. 314 | - Fixed a bug with managing nameserver records in the DNS Manager 315 | - Fixed incorrect format in the module sync 316 | 317 | ## 1.9.10 [Updated 23/03/2018] 318 | ### Added 319 | - "Sync" Domain Button. Performs a sync on the specified domain (same as the domain sync cron). 320 | 321 | ### Changed 322 | - Transferred away domains are marked as "Transferred Away" instead of "Cancelled" 323 | 324 | ### Fixed 325 | - Syncing domains pending transfer will no longer incorrectly be marked as expired. 326 | - API Calls with a response status of 'OUTBOUND' would be interpreted as a failure. 327 | 328 | ## 1.9.9 [Updated 20/03/2018] 329 | ### Fixed 330 | - Fixed an issue with phone number formatting when updating domain contacts. 331 | - Fixed an issue with syncing a domain undergoing a CoR. 332 | 333 | ## 1.9.8 [Updated 26/02/2018] 334 | ### Fixed 335 | - Fixed an issue with domain syncing where a sync could fail if a domain had certain statuses 336 | 337 | ## 1.9.7 [Updated 31/01/2018] 338 | ### Fixed 339 | - Fixed an issue with domains not syncing with specific statuses 340 | - Fixed an issue with phone number formatting when registering domain names with a non-AU phone number 341 | 342 | ## Version 1.9.6 [Updated 18/01/2018] 343 | ### Fixed 344 | - Fix URL forward not creating correctly if protocol is supplied 345 | 346 | ### Version 1.9.5 [Updated 13/12/2017] 347 | ### Fixed 348 | - AU registration data is now synchronised and stored locally 349 | - Fixed an issue where the DNS manager may time out too early 350 | 351 | ### Version 1.9.4 [Updated 05/12/2017] 352 | ### Fixed 353 | - Allow additional records to be created on the root domain via DNS manager 354 | 355 | ### Version 1.9.3 [Updated 02/05/2017] 356 | ### Fixed 357 | - Updated the transfer domain sync cron code to function correctly 358 | - Fixed incorrectly named variables preventing correct sync on domains 359 | 360 | ## Version 1.9.2 [Updated 24/04/2017] 361 | ### Added 362 | - Ability to handle SRV record types from the DNS Hosting / URL Forwarding module 363 | - Minified all .js files, while keeping the non minified version 364 | - Toastr support 365 | - Added whois.json file to override the standard WHMCS checker defaults 366 | 367 | ### Changed 368 | - Fixed up reference location for the Synergy Wholesale Domains CSS 369 | - Relocated assets into the our module folder to keep everything neat and tidy 370 | - Updated hooks file to not include our CSS and JS functions file for the entire ClientArea 371 | - Relocated page dependant JS for domaindnsurlforwarding.tpl to it's own js/domain.url.js file 372 | - Relocated page dependant JS for domaindnsemailforwarding.tpl to it's own js/email.js file 373 | - Relocated page dependant JS for domainchildhosts.tpl into the functions.js file 374 | - Implemented a regex via preg_replace to locate host records in dns managament that end with the domain name, and strip it away to make it easier for customers 375 | 376 | ### Fixed 377 | - Updated module name to synergywholesaledomains in the logModuleCall function 378 | 379 | ## Version 1.9.1 [Updated 12/12/2016] 380 | ### Removed 381 | - Removed dependency on /includes/countriescallingcodes.php since it no longer exists in WHMCS 7 from what we can tell and more importantly, it is not used in our module anyway. 382 | 383 | ### Changed 384 | - Updated the Changelog file and increased version to 1.9.1 385 | 386 | ## Version 1.9 [Updated 08/12/2016] 387 | ### Added 388 | - Added CHANGELOG and README. 389 | - Added an alert to "Manage DNSSEC Records" to display when there are no configured records to tell the user there are no configured records. 390 | - Added an alert to "Domain Options" to display a confirmation dialoge when changing the dns type 391 | - Added safety check to the ClientArea hook 392 | - Ability to register .us domain names via module 393 | - Added ability to detect when loading legacy dns and email forwarder pages and redirect to our custom ones 394 | - Added configuration option to convert the db from ventraip to synergywholesaledomains 395 | 396 | ### Removed 397 | - The domain name that you're performing actions upon will no longer appear at the top of the page in an alert box (it's in the breadcrumbs anyway). 398 | - Removed any duplicate HTML. 399 | - Removed admin area custom button entries and the resendTransferEmail function since it cannot be used properly at present 400 | 401 | ### Fixed 402 | - Fixed a bug which would stop you from enabling registrar lock. 403 | - Childhost and DNSSEC tables no longer have an 'X' overflow. 404 | 405 | ### Changed 406 | - Childhost and DNSSEC data tables will no longer display unless there is data. 407 | - Some phrasing and abbreviations for various messages. 408 | - Table action buttons are aligned to the right the table. 409 | - Email forwarding no longer uses "=>" to denote the destination, it now uses a font-awesome "long-arrow-right" 410 | - Added some extra comments into various functions 411 | - Have modified the default dns/url/email forwarding page functions to not process any requested updates, etc - these have moved to the custom designed pages / templates. 412 | - Removed error message from legacy dns and email forwarder pages and added in a var to define the registrarModule for use by the hooks 413 | - Modified all legacy mysql calls to use the new Capsule functionality 414 | -------------------------------------------------------------------------------- /modules/registrars/synergywholesaledomains/js/functions.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Synergy Wholesale Registrar Module 3 | * 4 | * @copyright Copyright (c) Synergy Wholesale Pty Ltd 2020 5 | * @license https://github.com/synergywholesale/whmcs-domains-module/LICENSE 6 | */ 7 | if ('undefined' !== typeof toastr) { 8 | toastr.options.positionClass = 'toast-top-full-width'; 9 | toastr.options.extendedTimeOut = 0; 10 | toastr.options.timeOut = 1e4; 11 | toastr.options.fadeOut = 500; 12 | toastr.options.fadeIn = 500; 13 | } 14 | 15 | $(document).ready(function () { 16 | $('#dnsrecords').delegate('select', 'change', function () { 17 | var self = $(this); 18 | var form = self.closest('form'); 19 | var addressCol = form.find("div:eq(1)"); 20 | var priorityInput = form.find('input[name="priority"]'); 21 | 22 | if (self.val() == 'SRV') { 23 | addressCol.html('\ 24 | \ 25 | \ 26 | \ 27 | '); 28 | } else { 29 | addressCol.html('') 30 | } 31 | 32 | // Enable the input column if we change the type to to SRV or MX 33 | priorityInput.prop('disabled', !['SRV', 'MX'].includes(self.val())) 34 | }); 35 | }); 36 | 37 | function Toast(type, css, msg) { 38 | toastr.options.positionClass = css; 39 | toastr[type](msg); 40 | } 41 | 42 | function formSubmitDNS() { 43 | let type = determineDNSType(parseInt(document.getElementById('option').value)); 44 | let text = `Are you sure you want to change the DNS Type to ${type}?`; 45 | if (confirm(text)) { 46 | this.form.submit() 47 | } 48 | } 49 | 50 | function determineDNSType(type) { 51 | const dnsTypes = { 52 | 0: 'Inactive', 53 | 1: 'Custom Nameservers', 54 | 2: 'URL & Email Forwarding + DNS Hosting', 55 | 3: 'Parked', 56 | 4: 'DNS Hosting', 57 | 5: 'Default Nameservers', 58 | 6: 'Legacy Hosting Nameservers', 59 | 7: 'Wholesale Hosting Nameservers', 60 | } 61 | 62 | return dnsTypes[type]; 63 | } 64 | // -------------------------------------------------- 65 | // Any Email Record related functionality starts here 66 | // -------------------------------------------------- 67 | // List email records 68 | function listMailRecords(domain_id) { 69 | 70 | let url = `clientarea.php?action=domaindetails&id=${domain_id}&modop=custom&a=manageEmailForwarding&op=getRecords` 71 | let promise = executeAJAXRequest('POST', url, '', 1e4).fail(errorHandler); 72 | 73 | promise.done(function(data) { 74 | if ('undefined' !== typeof data.error) { 75 | return; 76 | } 77 | 78 | $('.sw-loader').fadeOut('fast'); 79 | for (i = 0; i < data.length; i++) { 80 | populateEmailRow(data[i].record_id, data[i].prefix, data[i].forward_to); 81 | } 82 | 83 | Toast('success', 'toast-top-right', 'Successfully retrieved Email Forwards'); 84 | }); 85 | } 86 | 87 | // Add an email record 88 | function addEmailRecord(domain_id, temprecord_id, formdata) { 89 | 90 | let url = `clientarea.php?action=domaindetails&id=${domain_id}&modop=custom&a=manageEmailForwarding&op=addRecord`; 91 | let promise = executeAJAXRequest('POST', url, formdata, 1e4).fail(errorHandler); 92 | 93 | promise.done(function(data) { 94 | if ('undefined' !== typeof data.error) { 95 | return; 96 | } 97 | 98 | $('#emailrow-' + temprecord_id).attr('id', 'emailrow-' + data.record_id); 99 | $('#emailform-' + temprecord_id).attr('id', 'emailform-' + data.record_id); 100 | $('#newemailrecord_id-' + temprecord_id).attr('id', 'emailrecord_id-' + data.record_id); 101 | $('#emailrecord_id-' + data.record_id).val(data.record_id); 102 | 103 | Toast('success', 'toast-top-right', 'Email forwarder successfully added'); 104 | }); 105 | } 106 | 107 | // Delete email record 108 | function deleteEmailRecord(domain_id, record_id, formdata) { 109 | 110 | let url = `clientarea.php?action=domaindetails&id=${domain_id}&modop=custom&a=manageEmailForwarding&op=deleteRecord`; 111 | let promise = executeAJAXRequest('POST', url, formdata, 1e4).fail(errorHandler); 112 | 113 | promise.done(function(data) { 114 | if ('undefined' !== typeof data.error) { 115 | return; 116 | } 117 | 118 | $('#emailrow-' + record_id).remove(); 119 | 120 | Toast('success', 'toast-top-right', 'EMail Forwarder successfully deleted'); 121 | }); 122 | } 123 | 124 | // Update email forwarder 125 | function saveEmailRecord(domain_id, record_id, formdata) { 126 | 127 | let url = `clientarea.php?action=domaindetails&id=${domain_id}&modop=custom&a=manageEmailForwarding&op=`; 128 | let promise = executeAJAXRequest('POST', url + 'deleteRecord', formdata, 1e4).fail(errorHandler); 129 | 130 | promise.done(function(data) { 131 | if ('undefined' === typeof data.error) { 132 | return; 133 | } 134 | 135 | let promise = executeAJAXRequest('POST', url + 'addRecord', formdata, 1e4).fail(errorHandler); 136 | promise.done(function(data) { 137 | if ('undefined' !== typeof data.error) { 138 | return; 139 | } 140 | 141 | $('#emailrow-' + record_id).attr('id', 'emailrow-' + data.record_id); 142 | $('#emailform-' + record_id).attr('id', 'emailform-' + data.record_id); 143 | $('#newemailrecord_id-' + record_id).attr('id', 'emailrecord_id-' + data.record_id); 144 | $('#emailrecord_id-' + data.record_id).val(data.record_id); 145 | 146 | Toast('success', 'toast-top-right', 'Successfully updated Email Forwarder'); 147 | }); 148 | }); 149 | } 150 | 151 | // Populate the email row 152 | function populateEmailRow(record_id, prefix, forward_to) { 153 | $('#emailforwards').append(` 154 |
155 |
156 | 157 |
158 | 159 |
160 |
161 |
162 | 163 |
164 |
165 |
166 | 167 | 168 |
169 |
170 |
171 |
172 | `); 173 | } 174 | 175 | // -------------------------------------------------- 176 | // Any DNS / URL Record related functionality starts here 177 | // -------------------------------------------------- 178 | // List DNS / URL records 179 | function listRecords(domain_id) { 180 | 181 | let url = `clientarea.php?action=domaindetails&id=${domain_id}&modop=custom&a=manageDNSURLForwarding&op=getRecords`; 182 | let promise = executeAJAXRequest('POST', url).fail(errorHandler); 183 | 184 | promise.done(function(data) { 185 | if ('undefined' !== typeof data.error) { 186 | return; 187 | } 188 | 189 | $('.sw-loader').fadeOut('fast'); 190 | data.records.forEach(function(record) { 191 | if ('URL' === record.type || 'FRAME' === record.type) { 192 | populateURLRow(record.record_id, record.hostname, record.type, record.address); 193 | } else { 194 | populateDNSRow(record.record_id, data.domain, record.hostname, record.type, record.ttl, record.address, record.priority); 195 | } 196 | }); 197 | 198 | Toast('success', 'toast-top-right', 'Successfully retrieved DNS / URL records'); 199 | }); 200 | 201 | } 202 | 203 | // Add DNS / URL Record 204 | function addRecord(domain_id, temprecord_id, formdata, recordType) { 205 | 206 | if ('undefined' === typeof recordType) { 207 | recordType = 'dns'; 208 | } 209 | 210 | let url = `clientarea.php?action=domaindetails&id=${domain_id}&modop=custom&a=manageDNSURLForwarding&op=addRecord`; 211 | let promise = executeAJAXRequest('POST', url, formdata, 1e4).fail(errorHandler); 212 | 213 | promise.done(function(data) { 214 | if ('undefined' !== typeof data.error) { 215 | return; 216 | } 217 | 218 | if (recordType == 'dns') { 219 | $('#row-' + temprecord_id).attr('id', 'row-' + data.record_id); 220 | $('#form-' + temprecord_id).attr('id', 'form-' + data.record_id); 221 | $('#newrecord_id-' + temprecord_id).attr('id', 'record_id-' + data.record_id); 222 | $('#record_id-' + data.record_id).val(data.record_id); 223 | $('#form-' + data.record_id + ' input[name=hostname]').val(data.recordName); 224 | $('#form-' + data.record_id + ' input[name=address]').val(data.recordContent); 225 | $('#form-' + data.record_id + ' input[name=ttl]').val(data.recordTTL); 226 | 227 | if ('undefined' !== typeof data.recordPrio && ('MX' === data.recordType || 'SRV' === data.recordType)) { 228 | $('#form-' + data.record_id + ' input[name=priority]') 229 | .prop('disabled', false) 230 | .val(data.recordPrio); 231 | } else { 232 | $('#form-' + data.record_id + ' input[name=priority]') 233 | .prop('disabled', true) 234 | .val(''); 235 | } 236 | 237 | Toast('success', 'toast-top-right', 'Successfully added DNS record'); 238 | } 239 | 240 | if (recordType == 'url') { 241 | $('#urlrow-' + temprecord_id).attr('id', 'urlrow-' + data.record_id); 242 | $('#urlform-' + temprecord_id).attr('id', 'urlform-' + data.record_id); 243 | $('#urlnewrecord_id-' + temprecord_id).attr('id', 'urlrecord_id-' + data.record_id); 244 | $('#urlrecord_id-' + data.record_id).val(data.record_id); 245 | $('#urlform-' + data.record_id + ' input[name=hostname]').val(data.hostname); 246 | $('#urlform-' + data.record_id + ' input[name=address]').val(data.url); 247 | 248 | Toast('success', 'toast-top-right', 'Successfully added URL record'); 249 | } 250 | }); 251 | } 252 | 253 | // Delete DNS / URL Record 254 | function deleteRecord(domain_id, record_id, formdata, recordType) { 255 | 256 | let url = `clientarea.php?action=domaindetails&id=${domain_id}&modop=custom&a=manageDNSURLForwarding&op=deleteRecord`; 257 | let promise = executeAJAXRequest('POST', url, formdata, 1e4).fail(errorHandler); 258 | 259 | promise.done(function(data) { 260 | if ('undefined' !== typeof data.error) { 261 | return; 262 | } 263 | 264 | if ('dns' === recordType) { 265 | $('#row-' + record_id).remove(); 266 | Toast('success', 'toast-top-right', 'Successfully deleted DNS record'); 267 | } else if ('url' === recordType) { 268 | $('#urlrow-' + record_id).remove(); 269 | Toast('success', 'toast-top-right', 'Successfully deleted URL record'); 270 | } 271 | }); 272 | } 273 | 274 | // Save DNS / URL Record 275 | function saveRecord(domain_id, record_id, formdata, recordType) { 276 | 277 | if ('undefined' === typeof recordType) { 278 | recordType = 'dns'; 279 | } 280 | 281 | let url = `clientarea.php?action=domaindetails&id=${domain_id}&modop=custom&a=manageDNSURLForwarding&op=`; 282 | 283 | 284 | if (recordType == 'dns') { 285 | // Execute the AJAX Call to delete record 286 | let promise = executeAJAXRequest('POST', url + 'deleteRecord', formdata).fail(errorHandler); 287 | promise.done(function(data) { 288 | if ('undefined' !== typeof data.error) { 289 | return; 290 | } 291 | 292 | let promise = executeAJAXRequest('POST', url + 'addRecord', formdata).fail(errorHandler); 293 | promise.done(function(data) { 294 | if ('undefined' !== typeof data.error) { 295 | return; 296 | } 297 | 298 | $('#row-' + record_id).attr('id', 'row-' + data.record_id); 299 | $('#form-' + record_id).attr('id', 'form-' + data.record_id); 300 | $('#record_id-' + record_id).attr('id', 'record_id-' + data.record_id); 301 | $('#record_id-' + data.record_id).val(data.record_id); 302 | $('#form-' + data.record_id + ' input[name=hostname]').val(data.recordName); 303 | $('#form-' + data.record_id + ' input[name=address]').val(data.recordContent); 304 | $('#form-' + data.record_id + ' input[name=ttl]').val(data.recordTTL); 305 | if (typeof data.recordPrio !== 'undefined' && (data.recordType == 'MX' || data.recordType == 'SRV')) { 306 | $('#form-' + data.record_id + ' input[name=priority]') 307 | .prop('disabled', false) 308 | .val(data.recordPrio); 309 | } else { 310 | $('#form-' + data.record_id + ' input[name=priority]') 311 | .prop('disabled', true) 312 | .val(''); 313 | } 314 | Toast('success', 'toast-top-right', 'Successfully updated dns record'); 315 | }); 316 | }); 317 | } else if (recordType == 'url') { 318 | // Execute the AJAX Call to delete record 319 | var promise = executeAJAXRequest('POST', url + 'deleteRecord', formdata).fail(errorHandler); 320 | promise.done(function(data) { 321 | if (data.error !== undefined) { 322 | return; 323 | } 324 | // Execute the AJAX Call to add record 325 | var promise = executeAJAXRequest('POST', url + 'addRecord', formdata).fail(errorHandler); 326 | promise.done(function(data) { 327 | if (data.error !== undefined) { 328 | return; 329 | } 330 | $('#urlrow-' + record_id).attr('id', 'urlrow-' + data.record_id); 331 | $('#urlrow-' + record_id).attr('id', 'urlform-' + data.record_id); 332 | $('#urlrecord_id-' + record_id).attr('id', 'urlrecord_id-' + data.record_id); 333 | $('#urlrecord_id-' + data.record_id).val(data.record_id); 334 | $('#urlrow-' + data.record_id + ' input[name=hostname]').val(data.hostname); 335 | $('#urlrow-' + data.record_id + ' input[name=address]').val(data.url); 336 | Toast('success', 'toast-top-right', 'Successfully updated url record'); 337 | }); 338 | }); 339 | } 340 | } 341 | 342 | function populateDNSRow(record_id, domain, hostname, type, ttl, address, priority) { 343 | let types = ['A','AAAA','MX','CNAME','TXT','SRV','NS']; 344 | let options = '', buttons = '', controls = ''; 345 | 346 | types.forEach(function(value) { 347 | if (value == type) { 348 | options += ``; 349 | } else { 350 | options += ``; 351 | } 352 | }); 353 | 354 | if ('undefined' === typeof priority) { 355 | priority = ''; 356 | } 357 | 358 | if ('NS' !== type || ('NS' == type && hostname !== domain)) { 359 | controls = `
360 |
361 | 362 | 363 |
364 |
`; 365 | } 366 | 367 | var template = `
368 |
369 | 370 |
371 | 372 |
373 |
374 | 375 |
376 |
377 | 378 |
379 |
380 | 381 |
382 |
383 | 384 |
385 | ${controls} 386 |
387 |
`; 388 | 389 | if ('SRV' == type) { 390 | var srvContent = address.split(" "); 391 | var template = `
392 |
393 | 394 |
395 | 396 |
397 |
398 | 399 | 400 | 401 |
402 |
403 | 404 |
405 |
406 | 407 |
408 |
409 | 410 |
411 | ${controls} 412 |
413 |
`; 414 | } 415 | 416 | $('#dnsrecords').append(template); 417 | } 418 | 419 | function populateURLRow(record_id, hostname, type, address) { 420 | let types = { 421 | URL: 'URL Forward', 422 | FRAME: 'URL Frame (Cloaking)' 423 | }; 424 | 425 | let options = ''; 426 | 427 | for (i in types) { 428 | if (i == type) { 429 | options += ``; 430 | } else { 431 | options += ``; 432 | } 433 | } 434 | 435 | $('#urlforwards').append(` 436 |
437 |
438 | 439 |
440 | 441 |
442 |
443 | 444 |
445 |
446 | 447 |
448 |
449 |
450 | 451 | 452 |
453 |
454 |
455 |
456 | `); 457 | } 458 | 459 | // Execute the AJAX request 460 | function executeAJAXRequest(type, url, data, timeout) { 461 | if (timeout == undefined) { 462 | timeout = 15e3; 463 | } 464 | 465 | if (type == undefined) { 466 | type = 'GET'; 467 | } 468 | 469 | if (type === 'POST') { 470 | if (data === undefined) { 471 | data = { 472 | "token": csrfToken 473 | }; 474 | } else if (typeof data === 'string') { 475 | data = data + `&token=${csrfToken}`; 476 | } else if (typeof data === 'object') { 477 | data.token = csrfToken; 478 | } else { 479 | Toast('error', 'toast-top-right', 'Failed to send request!'); 480 | 481 | return; 482 | } 483 | } 484 | 485 | // Make the AJAX request 486 | return $.ajax({ 487 | type: type, 488 | url: url, 489 | data: data, 490 | timeout: timeout, 491 | dataType: 'text json' 492 | }).done(stdSuccessCB); 493 | } 494 | 495 | // This callback is used to detect and JSON errors, etc 496 | function stdSuccessCB(result) { 497 | if (typeof result === 'undefined') { 498 | Toast('error', 'toast-top-right', 'Unable to parse JSON Response'); 499 | } else { 500 | if (typeof result.error !== 'undefined') { 501 | Toast('error', 'toast-top-right', result.error); 502 | } 503 | } 504 | } 505 | 506 | function errorHandler(jqXHR, textStatus, errorThrown) { 507 | console.log(jqXHR); 508 | console.log(textStatus); 509 | console.log(errorThrown); 510 | } 511 | 512 | function EmailForwardPageReady(domain_id) { 513 | // Set up our loading animation 514 | $(document).on({ 515 | ajaxStart: function() { 516 | $('button').attr('disabled', 'disabled'); 517 | }, 518 | ajaxStop: function() { 519 | $('button').removeAttr('disabled'); 520 | } 521 | }); 522 | 523 | // Retrieve a list of all currently configured records 524 | listMailRecords(domain_id); 525 | 526 | // If we get a click on the class sw-insert-row do the following 527 | $(document).on('click', '.sw-insert-row', function() { 528 | // Count the number of div's in the emailforwards div 529 | let row_count = $('#emailforwards > div').length + 1; 530 | 531 | // Append the following html to the emailforwards div 532 | $('#emailforwards').append(` 533 |
534 |
535 | 536 |
537 | 538 |
539 |
540 | 541 |
542 |
543 | 544 |
545 |
546 |
547 | 548 | 549 |
550 |
551 |
552 |
553 | `); 554 | }); 555 | 556 | function saveRow(record_id) { 557 | // Get the new record id if it exists 558 | let new_record = $('#newemailrecord_id-' + record_id).val(); 559 | // Serialize the form 560 | let serializedData = $('#emailform-' + record_id).serialize(); 561 | // See if newrecord is defined 562 | if ('undefined' === typeof new_record) { 563 | // Save the record instead of adding it 564 | return saveEmailRecord(domain_id, record_id, serializedData); 565 | } 566 | 567 | // Add the record 568 | return addEmailRecord(domain_id, new_record, serializedData); 569 | } 570 | 571 | // If we get a click on the class save-row do the following 572 | $(document).on('click', '.save-row', function() { 573 | // Get the record id from the hidden input field 574 | let record_id = $(this).parent().parent().parent().find('input[type=hidden]').val(); 575 | return saveRow(record_id); 576 | }); 577 | 578 | $(document).on('keypress', '.row > form > div > input', function (event) { 579 | if (13 === event.keyCode) { 580 | // Get the record id from the hidden input field 581 | let record_id = $(this).parent().parent().find('input[type=hidden]').val(); 582 | return saveRow(record_id); 583 | } 584 | }); 585 | 586 | 587 | // If we get a click on the class delete-row do the following 588 | $(document).on('click', '.delete-row', function() { 589 | // Get the record id from the hidden input field 590 | let recordData = $(this).parent().parent().parent().parent().find('input[type=hidden]'); 591 | if (recordData.attr('id').indexOf('new') !== -1) { 592 | recordData.parent().parent().parent().hide(); 593 | return; 594 | } 595 | 596 | let record_id = recordData.val(); 597 | // Serialize the form 598 | let serializedData = $('#emailform-' + record_id).serialize(); 599 | // Add the record 600 | deleteEmailRecord(domain_id, record_id, serializedData); 601 | return; 602 | }); 603 | } 604 | 605 | function DnsUrlPageReady(domain_id) { 606 | // Set up our loading animation 607 | $(document).on({ 608 | ajaxStart: function() { 609 | $('button').attr('disabled', 'disabled'); 610 | }, 611 | ajaxStop: function() { 612 | $('button').removeAttr('disabled'); 613 | } 614 | }); 615 | // Retrieve a list of all currently configured records 616 | listRecords(domain_id); 617 | // If we get a click on the class sw-insert-row do the following 618 | $(document).on('click', '.sw-insert-row', function() { 619 | // Work out which div element we should be adding to 620 | let section = $(this).attr('data-append'); 621 | let row_count = 0; 622 | switch (section) { 623 | case 'dnsrecords': 624 | // Count the number of div's in the dnsrecords div 625 | row_count = $('#dnsrecords > div').length + 1; 626 | // Append the following html to the dnsrecords div 627 | $('#dnsrecords').append(` 628 |
629 |
630 | 631 |
632 | 633 |
634 |
635 | 636 |
637 |
638 | 647 |
648 |
649 | 650 |
651 |
652 | 653 |
654 |
655 |
656 | 657 | 658 |
659 |
660 |
661 |
662 | `); 663 | break; 664 | case 'urlforwards': 665 | row_count = $('#urlforwards > div').length + 1; 666 | 667 | $('#urlforwards').append(` 668 |
669 |
670 | 671 |
672 | 673 |
674 |
675 | 676 |
677 |
678 | 682 |
683 |
684 |
685 | 686 | 687 |
688 |
689 |
690 |
691 | `); 692 | break; 693 | } 694 | }); 695 | 696 | function saveRow(section, record_id) { 697 | 698 | let serializedData; 699 | 700 | switch (section) { 701 | case 'dnsrecords': 702 | new_record = $('#newrecord_id-' + record_id).val(); 703 | serializedData = $('#form-' + record_id).serialize(); 704 | 705 | if ('undefined' === typeof new_record) { 706 | saveRecord(domain_id, record_id, serializedData, 'dns'); 707 | break; 708 | } 709 | 710 | addRecord(domain_id, new_record, serializedData, 'dns'); 711 | break; 712 | case 'urlforwards': 713 | new_record = $('#urlnewrecord_id-' + record_id).val(); 714 | serializedData = $('#urlform-' + record_id).serialize(); 715 | 716 | if ('undefined' === typeof new_record) { 717 | saveRecord(domain_id, record_id, serializedData, 'url'); 718 | break; 719 | } 720 | 721 | addRecord(domain_id, record_id, serializedData, 'url'); 722 | break; 723 | } 724 | 725 | } 726 | 727 | // If we get a click on the class save-row do the following 728 | $(document).on('click', '.save-row', function() { 729 | let section = $(this).parent().parent().parent().parent().parent().attr('id'); 730 | let record_id = $(this).parent().parent().parent().find('input[type=hidden]').val(); 731 | return saveRow(section, record_id); 732 | }); 733 | 734 | $(document).on('keypress', '.row > form > div > input', function (event) { 735 | if (13 === event.keyCode) { 736 | let section = $(this).parent().parent().parent().parent().attr('id'); 737 | let record_id = $(this).parent().parent().find('input[type=hidden]').val(); 738 | return saveRow(section, record_id); 739 | } 740 | }); 741 | 742 | // If we get a click on the class delete-row do the following 743 | $(document).on('click', '.delete-row', function() { 744 | 745 | let section = $(this).parent().parent().parent().parent().parent().attr('id'); 746 | let record = $(this).parent().parent().parent().find('input[type=hidden]'); 747 | let record_id = record.val(); 748 | let serializedData; 749 | 750 | switch (section) { 751 | case 'dnsrecords': 752 | serializedData = $('#form-' + record_id).serialize(); 753 | if (-1 !== record.attr('id').indexOf('new')) { 754 | $(this).parent().parent().parent().parent().hide(); 755 | break; 756 | } 757 | 758 | deleteRecord(domain_id, record_id, serializedData, 'dns'); 759 | break; 760 | case 'urlforwards': 761 | serializedData = $('#urlform-' + record_id).serialize(); 762 | if (-1 !== record.attr('id').indexOf('new')) { 763 | $(this).parent().parent().parent().parent().hide(); 764 | break; 765 | } 766 | 767 | deleteRecord(domain_id, record_id, serializedData, 'url'); 768 | break; 769 | } 770 | }); 771 | } 772 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . -------------------------------------------------------------------------------- /composer.lock: -------------------------------------------------------------------------------- 1 | { 2 | "_readme": [ 3 | "This file locks the dependencies of your project to a known state", 4 | "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", 5 | "This file is @generated automatically" 6 | ], 7 | "content-hash": "445ea699baf97c6d5c12d0e58a3271c7", 8 | "packages": [], 9 | "packages-dev": [ 10 | { 11 | "name": "doctrine/instantiator", 12 | "version": "1.5.0", 13 | "source": { 14 | "type": "git", 15 | "url": "https://github.com/doctrine/instantiator.git", 16 | "reference": "0a0fa9780f5d4e507415a065172d26a98d02047b" 17 | }, 18 | "dist": { 19 | "type": "zip", 20 | "url": "https://api.github.com/repos/doctrine/instantiator/zipball/0a0fa9780f5d4e507415a065172d26a98d02047b", 21 | "reference": "0a0fa9780f5d4e507415a065172d26a98d02047b", 22 | "shasum": "" 23 | }, 24 | "require": { 25 | "php": "^7.1 || ^8.0" 26 | }, 27 | "require-dev": { 28 | "doctrine/coding-standard": "^9 || ^11", 29 | "ext-pdo": "*", 30 | "ext-phar": "*", 31 | "phpbench/phpbench": "^0.16 || ^1", 32 | "phpstan/phpstan": "^1.4", 33 | "phpstan/phpstan-phpunit": "^1", 34 | "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5", 35 | "vimeo/psalm": "^4.30 || ^5.4" 36 | }, 37 | "type": "library", 38 | "autoload": { 39 | "psr-4": { 40 | "Doctrine\\Instantiator\\": "src/Doctrine/Instantiator/" 41 | } 42 | }, 43 | "notification-url": "https://packagist.org/downloads/", 44 | "license": [ 45 | "MIT" 46 | ], 47 | "authors": [ 48 | { 49 | "name": "Marco Pivetta", 50 | "email": "ocramius@gmail.com", 51 | "homepage": "https://ocramius.github.io/" 52 | } 53 | ], 54 | "description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors", 55 | "homepage": "https://www.doctrine-project.org/projects/instantiator.html", 56 | "keywords": [ 57 | "constructor", 58 | "instantiate" 59 | ], 60 | "support": { 61 | "issues": "https://github.com/doctrine/instantiator/issues", 62 | "source": "https://github.com/doctrine/instantiator/tree/1.5.0" 63 | }, 64 | "funding": [ 65 | { 66 | "url": "https://www.doctrine-project.org/sponsorship.html", 67 | "type": "custom" 68 | }, 69 | { 70 | "url": "https://www.patreon.com/phpdoctrine", 71 | "type": "patreon" 72 | }, 73 | { 74 | "url": "https://tidelift.com/funding/github/packagist/doctrine%2Finstantiator", 75 | "type": "tidelift" 76 | } 77 | ], 78 | "time": "2022-12-30T00:15:36+00:00" 79 | }, 80 | { 81 | "name": "myclabs/deep-copy", 82 | "version": "1.13.1", 83 | "source": { 84 | "type": "git", 85 | "url": "https://github.com/myclabs/DeepCopy.git", 86 | "reference": "1720ddd719e16cf0db4eb1c6eca108031636d46c" 87 | }, 88 | "dist": { 89 | "type": "zip", 90 | "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/1720ddd719e16cf0db4eb1c6eca108031636d46c", 91 | "reference": "1720ddd719e16cf0db4eb1c6eca108031636d46c", 92 | "shasum": "" 93 | }, 94 | "require": { 95 | "php": "^7.1 || ^8.0" 96 | }, 97 | "conflict": { 98 | "doctrine/collections": "<1.6.8", 99 | "doctrine/common": "<2.13.3 || >=3 <3.2.2" 100 | }, 101 | "require-dev": { 102 | "doctrine/collections": "^1.6.8", 103 | "doctrine/common": "^2.13.3 || ^3.2.2", 104 | "phpspec/prophecy": "^1.10", 105 | "phpunit/phpunit": "^7.5.20 || ^8.5.23 || ^9.5.13" 106 | }, 107 | "type": "library", 108 | "autoload": { 109 | "files": [ 110 | "src/DeepCopy/deep_copy.php" 111 | ], 112 | "psr-4": { 113 | "DeepCopy\\": "src/DeepCopy/" 114 | } 115 | }, 116 | "notification-url": "https://packagist.org/downloads/", 117 | "license": [ 118 | "MIT" 119 | ], 120 | "description": "Create deep copies (clones) of your objects", 121 | "keywords": [ 122 | "clone", 123 | "copy", 124 | "duplicate", 125 | "object", 126 | "object graph" 127 | ], 128 | "support": { 129 | "issues": "https://github.com/myclabs/DeepCopy/issues", 130 | "source": "https://github.com/myclabs/DeepCopy/tree/1.13.1" 131 | }, 132 | "funding": [ 133 | { 134 | "url": "https://tidelift.com/funding/github/packagist/myclabs/deep-copy", 135 | "type": "tidelift" 136 | } 137 | ], 138 | "time": "2025-04-29T12:36:36+00:00" 139 | }, 140 | { 141 | "name": "phar-io/manifest", 142 | "version": "2.0.4", 143 | "source": { 144 | "type": "git", 145 | "url": "https://github.com/phar-io/manifest.git", 146 | "reference": "54750ef60c58e43759730615a392c31c80e23176" 147 | }, 148 | "dist": { 149 | "type": "zip", 150 | "url": "https://api.github.com/repos/phar-io/manifest/zipball/54750ef60c58e43759730615a392c31c80e23176", 151 | "reference": "54750ef60c58e43759730615a392c31c80e23176", 152 | "shasum": "" 153 | }, 154 | "require": { 155 | "ext-dom": "*", 156 | "ext-libxml": "*", 157 | "ext-phar": "*", 158 | "ext-xmlwriter": "*", 159 | "phar-io/version": "^3.0.1", 160 | "php": "^7.2 || ^8.0" 161 | }, 162 | "type": "library", 163 | "extra": { 164 | "branch-alias": { 165 | "dev-master": "2.0.x-dev" 166 | } 167 | }, 168 | "autoload": { 169 | "classmap": [ 170 | "src/" 171 | ] 172 | }, 173 | "notification-url": "https://packagist.org/downloads/", 174 | "license": [ 175 | "BSD-3-Clause" 176 | ], 177 | "authors": [ 178 | { 179 | "name": "Arne Blankerts", 180 | "email": "arne@blankerts.de", 181 | "role": "Developer" 182 | }, 183 | { 184 | "name": "Sebastian Heuer", 185 | "email": "sebastian@phpeople.de", 186 | "role": "Developer" 187 | }, 188 | { 189 | "name": "Sebastian Bergmann", 190 | "email": "sebastian@phpunit.de", 191 | "role": "Developer" 192 | } 193 | ], 194 | "description": "Component for reading phar.io manifest information from a PHP Archive (PHAR)", 195 | "support": { 196 | "issues": "https://github.com/phar-io/manifest/issues", 197 | "source": "https://github.com/phar-io/manifest/tree/2.0.4" 198 | }, 199 | "funding": [ 200 | { 201 | "url": "https://github.com/theseer", 202 | "type": "github" 203 | } 204 | ], 205 | "time": "2024-03-03T12:33:53+00:00" 206 | }, 207 | { 208 | "name": "phar-io/version", 209 | "version": "3.2.1", 210 | "source": { 211 | "type": "git", 212 | "url": "https://github.com/phar-io/version.git", 213 | "reference": "4f7fd7836c6f332bb2933569e566a0d6c4cbed74" 214 | }, 215 | "dist": { 216 | "type": "zip", 217 | "url": "https://api.github.com/repos/phar-io/version/zipball/4f7fd7836c6f332bb2933569e566a0d6c4cbed74", 218 | "reference": "4f7fd7836c6f332bb2933569e566a0d6c4cbed74", 219 | "shasum": "" 220 | }, 221 | "require": { 222 | "php": "^7.2 || ^8.0" 223 | }, 224 | "type": "library", 225 | "autoload": { 226 | "classmap": [ 227 | "src/" 228 | ] 229 | }, 230 | "notification-url": "https://packagist.org/downloads/", 231 | "license": [ 232 | "BSD-3-Clause" 233 | ], 234 | "authors": [ 235 | { 236 | "name": "Arne Blankerts", 237 | "email": "arne@blankerts.de", 238 | "role": "Developer" 239 | }, 240 | { 241 | "name": "Sebastian Heuer", 242 | "email": "sebastian@phpeople.de", 243 | "role": "Developer" 244 | }, 245 | { 246 | "name": "Sebastian Bergmann", 247 | "email": "sebastian@phpunit.de", 248 | "role": "Developer" 249 | } 250 | ], 251 | "description": "Library for handling version information and constraints", 252 | "support": { 253 | "issues": "https://github.com/phar-io/version/issues", 254 | "source": "https://github.com/phar-io/version/tree/3.2.1" 255 | }, 256 | "time": "2022-02-21T01:04:05+00:00" 257 | }, 258 | { 259 | "name": "phpunit/php-code-coverage", 260 | "version": "7.0.17", 261 | "source": { 262 | "type": "git", 263 | "url": "https://github.com/sebastianbergmann/php-code-coverage.git", 264 | "reference": "40a4ed114a4aea5afd6df8d0f0c9cd3033097f66" 265 | }, 266 | "dist": { 267 | "type": "zip", 268 | "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/40a4ed114a4aea5afd6df8d0f0c9cd3033097f66", 269 | "reference": "40a4ed114a4aea5afd6df8d0f0c9cd3033097f66", 270 | "shasum": "" 271 | }, 272 | "require": { 273 | "ext-dom": "*", 274 | "ext-xmlwriter": "*", 275 | "php": ">=7.2", 276 | "phpunit/php-file-iterator": "^2.0.2", 277 | "phpunit/php-text-template": "^1.2.1", 278 | "phpunit/php-token-stream": "^3.1.3 || ^4.0", 279 | "sebastian/code-unit-reverse-lookup": "^1.0.1", 280 | "sebastian/environment": "^4.2.2", 281 | "sebastian/version": "^2.0.1", 282 | "theseer/tokenizer": "^1.1.3" 283 | }, 284 | "require-dev": { 285 | "phpunit/phpunit": "^8.2.2" 286 | }, 287 | "suggest": { 288 | "ext-xdebug": "^2.7.2" 289 | }, 290 | "type": "library", 291 | "extra": { 292 | "branch-alias": { 293 | "dev-master": "7.0-dev" 294 | } 295 | }, 296 | "autoload": { 297 | "classmap": [ 298 | "src/" 299 | ] 300 | }, 301 | "notification-url": "https://packagist.org/downloads/", 302 | "license": [ 303 | "BSD-3-Clause" 304 | ], 305 | "authors": [ 306 | { 307 | "name": "Sebastian Bergmann", 308 | "email": "sebastian@phpunit.de", 309 | "role": "lead" 310 | } 311 | ], 312 | "description": "Library that provides collection, processing, and rendering functionality for PHP code coverage information.", 313 | "homepage": "https://github.com/sebastianbergmann/php-code-coverage", 314 | "keywords": [ 315 | "coverage", 316 | "testing", 317 | "xunit" 318 | ], 319 | "support": { 320 | "issues": "https://github.com/sebastianbergmann/php-code-coverage/issues", 321 | "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/7.0.17" 322 | }, 323 | "funding": [ 324 | { 325 | "url": "https://github.com/sebastianbergmann", 326 | "type": "github" 327 | } 328 | ], 329 | "time": "2024-03-02T06:09:37+00:00" 330 | }, 331 | { 332 | "name": "phpunit/php-file-iterator", 333 | "version": "2.0.6", 334 | "source": { 335 | "type": "git", 336 | "url": "https://github.com/sebastianbergmann/php-file-iterator.git", 337 | "reference": "69deeb8664f611f156a924154985fbd4911eb36b" 338 | }, 339 | "dist": { 340 | "type": "zip", 341 | "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/69deeb8664f611f156a924154985fbd4911eb36b", 342 | "reference": "69deeb8664f611f156a924154985fbd4911eb36b", 343 | "shasum": "" 344 | }, 345 | "require": { 346 | "php": ">=7.1" 347 | }, 348 | "require-dev": { 349 | "phpunit/phpunit": "^8.5" 350 | }, 351 | "type": "library", 352 | "extra": { 353 | "branch-alias": { 354 | "dev-master": "2.0.x-dev" 355 | } 356 | }, 357 | "autoload": { 358 | "classmap": [ 359 | "src/" 360 | ] 361 | }, 362 | "notification-url": "https://packagist.org/downloads/", 363 | "license": [ 364 | "BSD-3-Clause" 365 | ], 366 | "authors": [ 367 | { 368 | "name": "Sebastian Bergmann", 369 | "email": "sebastian@phpunit.de", 370 | "role": "lead" 371 | } 372 | ], 373 | "description": "FilterIterator implementation that filters files based on a list of suffixes.", 374 | "homepage": "https://github.com/sebastianbergmann/php-file-iterator/", 375 | "keywords": [ 376 | "filesystem", 377 | "iterator" 378 | ], 379 | "support": { 380 | "issues": "https://github.com/sebastianbergmann/php-file-iterator/issues", 381 | "source": "https://github.com/sebastianbergmann/php-file-iterator/tree/2.0.6" 382 | }, 383 | "funding": [ 384 | { 385 | "url": "https://github.com/sebastianbergmann", 386 | "type": "github" 387 | } 388 | ], 389 | "time": "2024-03-01T13:39:50+00:00" 390 | }, 391 | { 392 | "name": "phpunit/php-text-template", 393 | "version": "1.2.1", 394 | "source": { 395 | "type": "git", 396 | "url": "https://github.com/sebastianbergmann/php-text-template.git", 397 | "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686" 398 | }, 399 | "dist": { 400 | "type": "zip", 401 | "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/31f8b717e51d9a2afca6c9f046f5d69fc27c8686", 402 | "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686", 403 | "shasum": "" 404 | }, 405 | "require": { 406 | "php": ">=5.3.3" 407 | }, 408 | "type": "library", 409 | "autoload": { 410 | "classmap": [ 411 | "src/" 412 | ] 413 | }, 414 | "notification-url": "https://packagist.org/downloads/", 415 | "license": [ 416 | "BSD-3-Clause" 417 | ], 418 | "authors": [ 419 | { 420 | "name": "Sebastian Bergmann", 421 | "email": "sebastian@phpunit.de", 422 | "role": "lead" 423 | } 424 | ], 425 | "description": "Simple template engine.", 426 | "homepage": "https://github.com/sebastianbergmann/php-text-template/", 427 | "keywords": [ 428 | "template" 429 | ], 430 | "support": { 431 | "issues": "https://github.com/sebastianbergmann/php-text-template/issues", 432 | "source": "https://github.com/sebastianbergmann/php-text-template/tree/1.2.1" 433 | }, 434 | "time": "2015-06-21T13:50:34+00:00" 435 | }, 436 | { 437 | "name": "phpunit/php-timer", 438 | "version": "2.1.4", 439 | "source": { 440 | "type": "git", 441 | "url": "https://github.com/sebastianbergmann/php-timer.git", 442 | "reference": "a691211e94ff39a34811abd521c31bd5b305b0bb" 443 | }, 444 | "dist": { 445 | "type": "zip", 446 | "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/a691211e94ff39a34811abd521c31bd5b305b0bb", 447 | "reference": "a691211e94ff39a34811abd521c31bd5b305b0bb", 448 | "shasum": "" 449 | }, 450 | "require": { 451 | "php": ">=7.1" 452 | }, 453 | "require-dev": { 454 | "phpunit/phpunit": "^8.5" 455 | }, 456 | "type": "library", 457 | "extra": { 458 | "branch-alias": { 459 | "dev-master": "2.1-dev" 460 | } 461 | }, 462 | "autoload": { 463 | "classmap": [ 464 | "src/" 465 | ] 466 | }, 467 | "notification-url": "https://packagist.org/downloads/", 468 | "license": [ 469 | "BSD-3-Clause" 470 | ], 471 | "authors": [ 472 | { 473 | "name": "Sebastian Bergmann", 474 | "email": "sebastian@phpunit.de", 475 | "role": "lead" 476 | } 477 | ], 478 | "description": "Utility class for timing", 479 | "homepage": "https://github.com/sebastianbergmann/php-timer/", 480 | "keywords": [ 481 | "timer" 482 | ], 483 | "support": { 484 | "issues": "https://github.com/sebastianbergmann/php-timer/issues", 485 | "source": "https://github.com/sebastianbergmann/php-timer/tree/2.1.4" 486 | }, 487 | "funding": [ 488 | { 489 | "url": "https://github.com/sebastianbergmann", 490 | "type": "github" 491 | } 492 | ], 493 | "time": "2024-03-01T13:42:41+00:00" 494 | }, 495 | { 496 | "name": "phpunit/php-token-stream", 497 | "version": "3.1.3", 498 | "source": { 499 | "type": "git", 500 | "url": "https://github.com/sebastianbergmann/php-token-stream.git", 501 | "reference": "9c1da83261628cb24b6a6df371b6e312b3954768" 502 | }, 503 | "dist": { 504 | "type": "zip", 505 | "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/9c1da83261628cb24b6a6df371b6e312b3954768", 506 | "reference": "9c1da83261628cb24b6a6df371b6e312b3954768", 507 | "shasum": "" 508 | }, 509 | "require": { 510 | "ext-tokenizer": "*", 511 | "php": ">=7.1" 512 | }, 513 | "require-dev": { 514 | "phpunit/phpunit": "^7.0" 515 | }, 516 | "type": "library", 517 | "extra": { 518 | "branch-alias": { 519 | "dev-master": "3.1-dev" 520 | } 521 | }, 522 | "autoload": { 523 | "classmap": [ 524 | "src/" 525 | ] 526 | }, 527 | "notification-url": "https://packagist.org/downloads/", 528 | "license": [ 529 | "BSD-3-Clause" 530 | ], 531 | "authors": [ 532 | { 533 | "name": "Sebastian Bergmann", 534 | "email": "sebastian@phpunit.de" 535 | } 536 | ], 537 | "description": "Wrapper around PHP's tokenizer extension.", 538 | "homepage": "https://github.com/sebastianbergmann/php-token-stream/", 539 | "keywords": [ 540 | "tokenizer" 541 | ], 542 | "support": { 543 | "issues": "https://github.com/sebastianbergmann/php-token-stream/issues", 544 | "source": "https://github.com/sebastianbergmann/php-token-stream/tree/3.1.3" 545 | }, 546 | "funding": [ 547 | { 548 | "url": "https://github.com/sebastianbergmann", 549 | "type": "github" 550 | } 551 | ], 552 | "abandoned": true, 553 | "time": "2021-07-26T12:15:06+00:00" 554 | }, 555 | { 556 | "name": "phpunit/phpunit", 557 | "version": "8.5.42", 558 | "source": { 559 | "type": "git", 560 | "url": "https://github.com/sebastianbergmann/phpunit.git", 561 | "reference": "3a68a70824da546d26ac08ca4fced67341f4158f" 562 | }, 563 | "dist": { 564 | "type": "zip", 565 | "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/3a68a70824da546d26ac08ca4fced67341f4158f", 566 | "reference": "3a68a70824da546d26ac08ca4fced67341f4158f", 567 | "shasum": "" 568 | }, 569 | "require": { 570 | "doctrine/instantiator": "^1.5.0", 571 | "ext-dom": "*", 572 | "ext-json": "*", 573 | "ext-libxml": "*", 574 | "ext-mbstring": "*", 575 | "ext-xml": "*", 576 | "ext-xmlwriter": "*", 577 | "myclabs/deep-copy": "^1.13.1", 578 | "phar-io/manifest": "^2.0.4", 579 | "phar-io/version": "^3.2.1", 580 | "php": ">=7.2", 581 | "phpunit/php-code-coverage": "^7.0.17", 582 | "phpunit/php-file-iterator": "^2.0.6", 583 | "phpunit/php-text-template": "^1.2.1", 584 | "phpunit/php-timer": "^2.1.4", 585 | "sebastian/comparator": "^3.0.5", 586 | "sebastian/diff": "^3.0.6", 587 | "sebastian/environment": "^4.2.5", 588 | "sebastian/exporter": "^3.1.6", 589 | "sebastian/global-state": "^3.0.5", 590 | "sebastian/object-enumerator": "^3.0.5", 591 | "sebastian/resource-operations": "^2.0.3", 592 | "sebastian/type": "^1.1.5", 593 | "sebastian/version": "^2.0.1" 594 | }, 595 | "suggest": { 596 | "ext-soap": "To be able to generate mocks based on WSDL files", 597 | "ext-xdebug": "PHP extension that provides line coverage as well as branch and path coverage", 598 | "phpunit/php-invoker": "To allow enforcing time limits" 599 | }, 600 | "bin": [ 601 | "phpunit" 602 | ], 603 | "type": "library", 604 | "extra": { 605 | "branch-alias": { 606 | "dev-master": "8.5-dev" 607 | } 608 | }, 609 | "autoload": { 610 | "classmap": [ 611 | "src/" 612 | ] 613 | }, 614 | "notification-url": "https://packagist.org/downloads/", 615 | "license": [ 616 | "BSD-3-Clause" 617 | ], 618 | "authors": [ 619 | { 620 | "name": "Sebastian Bergmann", 621 | "email": "sebastian@phpunit.de", 622 | "role": "lead" 623 | } 624 | ], 625 | "description": "The PHP Unit Testing framework.", 626 | "homepage": "https://phpunit.de/", 627 | "keywords": [ 628 | "phpunit", 629 | "testing", 630 | "xunit" 631 | ], 632 | "support": { 633 | "issues": "https://github.com/sebastianbergmann/phpunit/issues", 634 | "security": "https://github.com/sebastianbergmann/phpunit/security/policy", 635 | "source": "https://github.com/sebastianbergmann/phpunit/tree/8.5.42" 636 | }, 637 | "funding": [ 638 | { 639 | "url": "https://phpunit.de/sponsors.html", 640 | "type": "custom" 641 | }, 642 | { 643 | "url": "https://github.com/sebastianbergmann", 644 | "type": "github" 645 | }, 646 | { 647 | "url": "https://liberapay.com/sebastianbergmann", 648 | "type": "liberapay" 649 | }, 650 | { 651 | "url": "https://thanks.dev/u/gh/sebastianbergmann", 652 | "type": "thanks_dev" 653 | }, 654 | { 655 | "url": "https://tidelift.com/funding/github/packagist/phpunit/phpunit", 656 | "type": "tidelift" 657 | } 658 | ], 659 | "time": "2025-05-02T06:33:00+00:00" 660 | }, 661 | { 662 | "name": "sebastian/code-unit-reverse-lookup", 663 | "version": "1.0.3", 664 | "source": { 665 | "type": "git", 666 | "url": "https://github.com/sebastianbergmann/code-unit-reverse-lookup.git", 667 | "reference": "92a1a52e86d34cde6caa54f1b5ffa9fda18e5d54" 668 | }, 669 | "dist": { 670 | "type": "zip", 671 | "url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/92a1a52e86d34cde6caa54f1b5ffa9fda18e5d54", 672 | "reference": "92a1a52e86d34cde6caa54f1b5ffa9fda18e5d54", 673 | "shasum": "" 674 | }, 675 | "require": { 676 | "php": ">=5.6" 677 | }, 678 | "require-dev": { 679 | "phpunit/phpunit": "^8.5" 680 | }, 681 | "type": "library", 682 | "extra": { 683 | "branch-alias": { 684 | "dev-master": "1.0.x-dev" 685 | } 686 | }, 687 | "autoload": { 688 | "classmap": [ 689 | "src/" 690 | ] 691 | }, 692 | "notification-url": "https://packagist.org/downloads/", 693 | "license": [ 694 | "BSD-3-Clause" 695 | ], 696 | "authors": [ 697 | { 698 | "name": "Sebastian Bergmann", 699 | "email": "sebastian@phpunit.de" 700 | } 701 | ], 702 | "description": "Looks up which function or method a line of code belongs to", 703 | "homepage": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/", 704 | "support": { 705 | "issues": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/issues", 706 | "source": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/tree/1.0.3" 707 | }, 708 | "funding": [ 709 | { 710 | "url": "https://github.com/sebastianbergmann", 711 | "type": "github" 712 | } 713 | ], 714 | "time": "2024-03-01T13:45:45+00:00" 715 | }, 716 | { 717 | "name": "sebastian/comparator", 718 | "version": "3.0.5", 719 | "source": { 720 | "type": "git", 721 | "url": "https://github.com/sebastianbergmann/comparator.git", 722 | "reference": "1dc7ceb4a24aede938c7af2a9ed1de09609ca770" 723 | }, 724 | "dist": { 725 | "type": "zip", 726 | "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/1dc7ceb4a24aede938c7af2a9ed1de09609ca770", 727 | "reference": "1dc7ceb4a24aede938c7af2a9ed1de09609ca770", 728 | "shasum": "" 729 | }, 730 | "require": { 731 | "php": ">=7.1", 732 | "sebastian/diff": "^3.0", 733 | "sebastian/exporter": "^3.1" 734 | }, 735 | "require-dev": { 736 | "phpunit/phpunit": "^8.5" 737 | }, 738 | "type": "library", 739 | "extra": { 740 | "branch-alias": { 741 | "dev-master": "3.0-dev" 742 | } 743 | }, 744 | "autoload": { 745 | "classmap": [ 746 | "src/" 747 | ] 748 | }, 749 | "notification-url": "https://packagist.org/downloads/", 750 | "license": [ 751 | "BSD-3-Clause" 752 | ], 753 | "authors": [ 754 | { 755 | "name": "Sebastian Bergmann", 756 | "email": "sebastian@phpunit.de" 757 | }, 758 | { 759 | "name": "Jeff Welch", 760 | "email": "whatthejeff@gmail.com" 761 | }, 762 | { 763 | "name": "Volker Dusch", 764 | "email": "github@wallbash.com" 765 | }, 766 | { 767 | "name": "Bernhard Schussek", 768 | "email": "bschussek@2bepublished.at" 769 | } 770 | ], 771 | "description": "Provides the functionality to compare PHP values for equality", 772 | "homepage": "https://github.com/sebastianbergmann/comparator", 773 | "keywords": [ 774 | "comparator", 775 | "compare", 776 | "equality" 777 | ], 778 | "support": { 779 | "issues": "https://github.com/sebastianbergmann/comparator/issues", 780 | "source": "https://github.com/sebastianbergmann/comparator/tree/3.0.5" 781 | }, 782 | "funding": [ 783 | { 784 | "url": "https://github.com/sebastianbergmann", 785 | "type": "github" 786 | } 787 | ], 788 | "time": "2022-09-14T12:31:48+00:00" 789 | }, 790 | { 791 | "name": "sebastian/diff", 792 | "version": "3.0.6", 793 | "source": { 794 | "type": "git", 795 | "url": "https://github.com/sebastianbergmann/diff.git", 796 | "reference": "98ff311ca519c3aa73ccd3de053bdb377171d7b6" 797 | }, 798 | "dist": { 799 | "type": "zip", 800 | "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/98ff311ca519c3aa73ccd3de053bdb377171d7b6", 801 | "reference": "98ff311ca519c3aa73ccd3de053bdb377171d7b6", 802 | "shasum": "" 803 | }, 804 | "require": { 805 | "php": ">=7.1" 806 | }, 807 | "require-dev": { 808 | "phpunit/phpunit": "^7.5 || ^8.0", 809 | "symfony/process": "^2 || ^3.3 || ^4" 810 | }, 811 | "type": "library", 812 | "extra": { 813 | "branch-alias": { 814 | "dev-master": "3.0-dev" 815 | } 816 | }, 817 | "autoload": { 818 | "classmap": [ 819 | "src/" 820 | ] 821 | }, 822 | "notification-url": "https://packagist.org/downloads/", 823 | "license": [ 824 | "BSD-3-Clause" 825 | ], 826 | "authors": [ 827 | { 828 | "name": "Sebastian Bergmann", 829 | "email": "sebastian@phpunit.de" 830 | }, 831 | { 832 | "name": "Kore Nordmann", 833 | "email": "mail@kore-nordmann.de" 834 | } 835 | ], 836 | "description": "Diff implementation", 837 | "homepage": "https://github.com/sebastianbergmann/diff", 838 | "keywords": [ 839 | "diff", 840 | "udiff", 841 | "unidiff", 842 | "unified diff" 843 | ], 844 | "support": { 845 | "issues": "https://github.com/sebastianbergmann/diff/issues", 846 | "source": "https://github.com/sebastianbergmann/diff/tree/3.0.6" 847 | }, 848 | "funding": [ 849 | { 850 | "url": "https://github.com/sebastianbergmann", 851 | "type": "github" 852 | } 853 | ], 854 | "time": "2024-03-02T06:16:36+00:00" 855 | }, 856 | { 857 | "name": "sebastian/environment", 858 | "version": "4.2.5", 859 | "source": { 860 | "type": "git", 861 | "url": "https://github.com/sebastianbergmann/environment.git", 862 | "reference": "56932f6049a0482853056ffd617c91ffcc754205" 863 | }, 864 | "dist": { 865 | "type": "zip", 866 | "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/56932f6049a0482853056ffd617c91ffcc754205", 867 | "reference": "56932f6049a0482853056ffd617c91ffcc754205", 868 | "shasum": "" 869 | }, 870 | "require": { 871 | "php": ">=7.1" 872 | }, 873 | "require-dev": { 874 | "phpunit/phpunit": "^7.5" 875 | }, 876 | "suggest": { 877 | "ext-posix": "*" 878 | }, 879 | "type": "library", 880 | "extra": { 881 | "branch-alias": { 882 | "dev-master": "4.2-dev" 883 | } 884 | }, 885 | "autoload": { 886 | "classmap": [ 887 | "src/" 888 | ] 889 | }, 890 | "notification-url": "https://packagist.org/downloads/", 891 | "license": [ 892 | "BSD-3-Clause" 893 | ], 894 | "authors": [ 895 | { 896 | "name": "Sebastian Bergmann", 897 | "email": "sebastian@phpunit.de" 898 | } 899 | ], 900 | "description": "Provides functionality to handle HHVM/PHP environments", 901 | "homepage": "http://www.github.com/sebastianbergmann/environment", 902 | "keywords": [ 903 | "Xdebug", 904 | "environment", 905 | "hhvm" 906 | ], 907 | "support": { 908 | "issues": "https://github.com/sebastianbergmann/environment/issues", 909 | "source": "https://github.com/sebastianbergmann/environment/tree/4.2.5" 910 | }, 911 | "funding": [ 912 | { 913 | "url": "https://github.com/sebastianbergmann", 914 | "type": "github" 915 | } 916 | ], 917 | "time": "2024-03-01T13:49:59+00:00" 918 | }, 919 | { 920 | "name": "sebastian/exporter", 921 | "version": "3.1.6", 922 | "source": { 923 | "type": "git", 924 | "url": "https://github.com/sebastianbergmann/exporter.git", 925 | "reference": "1939bc8fd1d39adcfa88c5b35335910869214c56" 926 | }, 927 | "dist": { 928 | "type": "zip", 929 | "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/1939bc8fd1d39adcfa88c5b35335910869214c56", 930 | "reference": "1939bc8fd1d39adcfa88c5b35335910869214c56", 931 | "shasum": "" 932 | }, 933 | "require": { 934 | "php": ">=7.2", 935 | "sebastian/recursion-context": "^3.0" 936 | }, 937 | "require-dev": { 938 | "ext-mbstring": "*", 939 | "phpunit/phpunit": "^8.5" 940 | }, 941 | "type": "library", 942 | "extra": { 943 | "branch-alias": { 944 | "dev-master": "3.1.x-dev" 945 | } 946 | }, 947 | "autoload": { 948 | "classmap": [ 949 | "src/" 950 | ] 951 | }, 952 | "notification-url": "https://packagist.org/downloads/", 953 | "license": [ 954 | "BSD-3-Clause" 955 | ], 956 | "authors": [ 957 | { 958 | "name": "Sebastian Bergmann", 959 | "email": "sebastian@phpunit.de" 960 | }, 961 | { 962 | "name": "Jeff Welch", 963 | "email": "whatthejeff@gmail.com" 964 | }, 965 | { 966 | "name": "Volker Dusch", 967 | "email": "github@wallbash.com" 968 | }, 969 | { 970 | "name": "Adam Harvey", 971 | "email": "aharvey@php.net" 972 | }, 973 | { 974 | "name": "Bernhard Schussek", 975 | "email": "bschussek@gmail.com" 976 | } 977 | ], 978 | "description": "Provides the functionality to export PHP variables for visualization", 979 | "homepage": "http://www.github.com/sebastianbergmann/exporter", 980 | "keywords": [ 981 | "export", 982 | "exporter" 983 | ], 984 | "support": { 985 | "issues": "https://github.com/sebastianbergmann/exporter/issues", 986 | "source": "https://github.com/sebastianbergmann/exporter/tree/3.1.6" 987 | }, 988 | "funding": [ 989 | { 990 | "url": "https://github.com/sebastianbergmann", 991 | "type": "github" 992 | } 993 | ], 994 | "time": "2024-03-02T06:21:38+00:00" 995 | }, 996 | { 997 | "name": "sebastian/global-state", 998 | "version": "3.0.5", 999 | "source": { 1000 | "type": "git", 1001 | "url": "https://github.com/sebastianbergmann/global-state.git", 1002 | "reference": "91c7c47047a971f02de57ed6f040087ef110c5d9" 1003 | }, 1004 | "dist": { 1005 | "type": "zip", 1006 | "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/91c7c47047a971f02de57ed6f040087ef110c5d9", 1007 | "reference": "91c7c47047a971f02de57ed6f040087ef110c5d9", 1008 | "shasum": "" 1009 | }, 1010 | "require": { 1011 | "php": ">=7.2", 1012 | "sebastian/object-reflector": "^1.1.1", 1013 | "sebastian/recursion-context": "^3.0" 1014 | }, 1015 | "require-dev": { 1016 | "ext-dom": "*", 1017 | "phpunit/phpunit": "^8.0" 1018 | }, 1019 | "suggest": { 1020 | "ext-uopz": "*" 1021 | }, 1022 | "type": "library", 1023 | "extra": { 1024 | "branch-alias": { 1025 | "dev-master": "3.0-dev" 1026 | } 1027 | }, 1028 | "autoload": { 1029 | "classmap": [ 1030 | "src/" 1031 | ] 1032 | }, 1033 | "notification-url": "https://packagist.org/downloads/", 1034 | "license": [ 1035 | "BSD-3-Clause" 1036 | ], 1037 | "authors": [ 1038 | { 1039 | "name": "Sebastian Bergmann", 1040 | "email": "sebastian@phpunit.de" 1041 | } 1042 | ], 1043 | "description": "Snapshotting of global state", 1044 | "homepage": "http://www.github.com/sebastianbergmann/global-state", 1045 | "keywords": [ 1046 | "global state" 1047 | ], 1048 | "support": { 1049 | "issues": "https://github.com/sebastianbergmann/global-state/issues", 1050 | "source": "https://github.com/sebastianbergmann/global-state/tree/3.0.5" 1051 | }, 1052 | "funding": [ 1053 | { 1054 | "url": "https://github.com/sebastianbergmann", 1055 | "type": "github" 1056 | } 1057 | ], 1058 | "time": "2024-03-02T06:13:16+00:00" 1059 | }, 1060 | { 1061 | "name": "sebastian/object-enumerator", 1062 | "version": "3.0.5", 1063 | "source": { 1064 | "type": "git", 1065 | "url": "https://github.com/sebastianbergmann/object-enumerator.git", 1066 | "reference": "ac5b293dba925751b808e02923399fb44ff0d541" 1067 | }, 1068 | "dist": { 1069 | "type": "zip", 1070 | "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/ac5b293dba925751b808e02923399fb44ff0d541", 1071 | "reference": "ac5b293dba925751b808e02923399fb44ff0d541", 1072 | "shasum": "" 1073 | }, 1074 | "require": { 1075 | "php": ">=7.0", 1076 | "sebastian/object-reflector": "^1.1.1", 1077 | "sebastian/recursion-context": "^3.0" 1078 | }, 1079 | "require-dev": { 1080 | "phpunit/phpunit": "^6.0" 1081 | }, 1082 | "type": "library", 1083 | "extra": { 1084 | "branch-alias": { 1085 | "dev-master": "3.0.x-dev" 1086 | } 1087 | }, 1088 | "autoload": { 1089 | "classmap": [ 1090 | "src/" 1091 | ] 1092 | }, 1093 | "notification-url": "https://packagist.org/downloads/", 1094 | "license": [ 1095 | "BSD-3-Clause" 1096 | ], 1097 | "authors": [ 1098 | { 1099 | "name": "Sebastian Bergmann", 1100 | "email": "sebastian@phpunit.de" 1101 | } 1102 | ], 1103 | "description": "Traverses array structures and object graphs to enumerate all referenced objects", 1104 | "homepage": "https://github.com/sebastianbergmann/object-enumerator/", 1105 | "support": { 1106 | "issues": "https://github.com/sebastianbergmann/object-enumerator/issues", 1107 | "source": "https://github.com/sebastianbergmann/object-enumerator/tree/3.0.5" 1108 | }, 1109 | "funding": [ 1110 | { 1111 | "url": "https://github.com/sebastianbergmann", 1112 | "type": "github" 1113 | } 1114 | ], 1115 | "time": "2024-03-01T13:54:02+00:00" 1116 | }, 1117 | { 1118 | "name": "sebastian/object-reflector", 1119 | "version": "1.1.3", 1120 | "source": { 1121 | "type": "git", 1122 | "url": "https://github.com/sebastianbergmann/object-reflector.git", 1123 | "reference": "1d439c229e61f244ff1f211e5c99737f90c67def" 1124 | }, 1125 | "dist": { 1126 | "type": "zip", 1127 | "url": "https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/1d439c229e61f244ff1f211e5c99737f90c67def", 1128 | "reference": "1d439c229e61f244ff1f211e5c99737f90c67def", 1129 | "shasum": "" 1130 | }, 1131 | "require": { 1132 | "php": ">=7.0" 1133 | }, 1134 | "require-dev": { 1135 | "phpunit/phpunit": "^6.0" 1136 | }, 1137 | "type": "library", 1138 | "extra": { 1139 | "branch-alias": { 1140 | "dev-master": "1.1-dev" 1141 | } 1142 | }, 1143 | "autoload": { 1144 | "classmap": [ 1145 | "src/" 1146 | ] 1147 | }, 1148 | "notification-url": "https://packagist.org/downloads/", 1149 | "license": [ 1150 | "BSD-3-Clause" 1151 | ], 1152 | "authors": [ 1153 | { 1154 | "name": "Sebastian Bergmann", 1155 | "email": "sebastian@phpunit.de" 1156 | } 1157 | ], 1158 | "description": "Allows reflection of object attributes, including inherited and non-public ones", 1159 | "homepage": "https://github.com/sebastianbergmann/object-reflector/", 1160 | "support": { 1161 | "issues": "https://github.com/sebastianbergmann/object-reflector/issues", 1162 | "source": "https://github.com/sebastianbergmann/object-reflector/tree/1.1.3" 1163 | }, 1164 | "funding": [ 1165 | { 1166 | "url": "https://github.com/sebastianbergmann", 1167 | "type": "github" 1168 | } 1169 | ], 1170 | "time": "2024-03-01T13:56:04+00:00" 1171 | }, 1172 | { 1173 | "name": "sebastian/recursion-context", 1174 | "version": "3.0.2", 1175 | "source": { 1176 | "type": "git", 1177 | "url": "https://github.com/sebastianbergmann/recursion-context.git", 1178 | "reference": "9bfd3c6f1f08c026f542032dfb42813544f7d64c" 1179 | }, 1180 | "dist": { 1181 | "type": "zip", 1182 | "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/9bfd3c6f1f08c026f542032dfb42813544f7d64c", 1183 | "reference": "9bfd3c6f1f08c026f542032dfb42813544f7d64c", 1184 | "shasum": "" 1185 | }, 1186 | "require": { 1187 | "php": ">=7.0" 1188 | }, 1189 | "require-dev": { 1190 | "phpunit/phpunit": "^6.0" 1191 | }, 1192 | "type": "library", 1193 | "extra": { 1194 | "branch-alias": { 1195 | "dev-master": "3.0.x-dev" 1196 | } 1197 | }, 1198 | "autoload": { 1199 | "classmap": [ 1200 | "src/" 1201 | ] 1202 | }, 1203 | "notification-url": "https://packagist.org/downloads/", 1204 | "license": [ 1205 | "BSD-3-Clause" 1206 | ], 1207 | "authors": [ 1208 | { 1209 | "name": "Sebastian Bergmann", 1210 | "email": "sebastian@phpunit.de" 1211 | }, 1212 | { 1213 | "name": "Jeff Welch", 1214 | "email": "whatthejeff@gmail.com" 1215 | }, 1216 | { 1217 | "name": "Adam Harvey", 1218 | "email": "aharvey@php.net" 1219 | } 1220 | ], 1221 | "description": "Provides functionality to recursively process PHP variables", 1222 | "homepage": "http://www.github.com/sebastianbergmann/recursion-context", 1223 | "support": { 1224 | "issues": "https://github.com/sebastianbergmann/recursion-context/issues", 1225 | "source": "https://github.com/sebastianbergmann/recursion-context/tree/3.0.2" 1226 | }, 1227 | "funding": [ 1228 | { 1229 | "url": "https://github.com/sebastianbergmann", 1230 | "type": "github" 1231 | } 1232 | ], 1233 | "time": "2024-03-01T14:07:30+00:00" 1234 | }, 1235 | { 1236 | "name": "sebastian/resource-operations", 1237 | "version": "2.0.3", 1238 | "source": { 1239 | "type": "git", 1240 | "url": "https://github.com/sebastianbergmann/resource-operations.git", 1241 | "reference": "72a7f7674d053d548003b16ff5a106e7e0e06eee" 1242 | }, 1243 | "dist": { 1244 | "type": "zip", 1245 | "url": "https://api.github.com/repos/sebastianbergmann/resource-operations/zipball/72a7f7674d053d548003b16ff5a106e7e0e06eee", 1246 | "reference": "72a7f7674d053d548003b16ff5a106e7e0e06eee", 1247 | "shasum": "" 1248 | }, 1249 | "require": { 1250 | "php": ">=7.1" 1251 | }, 1252 | "type": "library", 1253 | "extra": { 1254 | "branch-alias": { 1255 | "dev-master": "2.0-dev" 1256 | } 1257 | }, 1258 | "autoload": { 1259 | "classmap": [ 1260 | "src/" 1261 | ] 1262 | }, 1263 | "notification-url": "https://packagist.org/downloads/", 1264 | "license": [ 1265 | "BSD-3-Clause" 1266 | ], 1267 | "authors": [ 1268 | { 1269 | "name": "Sebastian Bergmann", 1270 | "email": "sebastian@phpunit.de" 1271 | } 1272 | ], 1273 | "description": "Provides a list of PHP built-in functions that operate on resources", 1274 | "homepage": "https://www.github.com/sebastianbergmann/resource-operations", 1275 | "support": { 1276 | "source": "https://github.com/sebastianbergmann/resource-operations/tree/2.0.3" 1277 | }, 1278 | "funding": [ 1279 | { 1280 | "url": "https://github.com/sebastianbergmann", 1281 | "type": "github" 1282 | } 1283 | ], 1284 | "time": "2024-03-01T13:59:09+00:00" 1285 | }, 1286 | { 1287 | "name": "sebastian/type", 1288 | "version": "1.1.5", 1289 | "source": { 1290 | "type": "git", 1291 | "url": "https://github.com/sebastianbergmann/type.git", 1292 | "reference": "18f071c3a29892b037d35e6b20ddf3ea39b42874" 1293 | }, 1294 | "dist": { 1295 | "type": "zip", 1296 | "url": "https://api.github.com/repos/sebastianbergmann/type/zipball/18f071c3a29892b037d35e6b20ddf3ea39b42874", 1297 | "reference": "18f071c3a29892b037d35e6b20ddf3ea39b42874", 1298 | "shasum": "" 1299 | }, 1300 | "require": { 1301 | "php": ">=7.2" 1302 | }, 1303 | "require-dev": { 1304 | "phpunit/phpunit": "^8.2" 1305 | }, 1306 | "type": "library", 1307 | "extra": { 1308 | "branch-alias": { 1309 | "dev-master": "1.1-dev" 1310 | } 1311 | }, 1312 | "autoload": { 1313 | "classmap": [ 1314 | "src/" 1315 | ] 1316 | }, 1317 | "notification-url": "https://packagist.org/downloads/", 1318 | "license": [ 1319 | "BSD-3-Clause" 1320 | ], 1321 | "authors": [ 1322 | { 1323 | "name": "Sebastian Bergmann", 1324 | "email": "sebastian@phpunit.de", 1325 | "role": "lead" 1326 | } 1327 | ], 1328 | "description": "Collection of value objects that represent the types of the PHP type system", 1329 | "homepage": "https://github.com/sebastianbergmann/type", 1330 | "support": { 1331 | "issues": "https://github.com/sebastianbergmann/type/issues", 1332 | "source": "https://github.com/sebastianbergmann/type/tree/1.1.5" 1333 | }, 1334 | "funding": [ 1335 | { 1336 | "url": "https://github.com/sebastianbergmann", 1337 | "type": "github" 1338 | } 1339 | ], 1340 | "time": "2024-03-01T14:04:07+00:00" 1341 | }, 1342 | { 1343 | "name": "sebastian/version", 1344 | "version": "2.0.1", 1345 | "source": { 1346 | "type": "git", 1347 | "url": "https://github.com/sebastianbergmann/version.git", 1348 | "reference": "99732be0ddb3361e16ad77b68ba41efc8e979019" 1349 | }, 1350 | "dist": { 1351 | "type": "zip", 1352 | "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/99732be0ddb3361e16ad77b68ba41efc8e979019", 1353 | "reference": "99732be0ddb3361e16ad77b68ba41efc8e979019", 1354 | "shasum": "" 1355 | }, 1356 | "require": { 1357 | "php": ">=5.6" 1358 | }, 1359 | "type": "library", 1360 | "extra": { 1361 | "branch-alias": { 1362 | "dev-master": "2.0.x-dev" 1363 | } 1364 | }, 1365 | "autoload": { 1366 | "classmap": [ 1367 | "src/" 1368 | ] 1369 | }, 1370 | "notification-url": "https://packagist.org/downloads/", 1371 | "license": [ 1372 | "BSD-3-Clause" 1373 | ], 1374 | "authors": [ 1375 | { 1376 | "name": "Sebastian Bergmann", 1377 | "email": "sebastian@phpunit.de", 1378 | "role": "lead" 1379 | } 1380 | ], 1381 | "description": "Library that helps with managing the version number of Git-hosted PHP projects", 1382 | "homepage": "https://github.com/sebastianbergmann/version", 1383 | "support": { 1384 | "issues": "https://github.com/sebastianbergmann/version/issues", 1385 | "source": "https://github.com/sebastianbergmann/version/tree/master" 1386 | }, 1387 | "time": "2016-10-03T07:35:21+00:00" 1388 | }, 1389 | { 1390 | "name": "squizlabs/php_codesniffer", 1391 | "version": "3.12.2", 1392 | "source": { 1393 | "type": "git", 1394 | "url": "https://github.com/PHPCSStandards/PHP_CodeSniffer.git", 1395 | "reference": "6d4cf6032d4b718f168c90a96e36c7d0eaacb2aa" 1396 | }, 1397 | "dist": { 1398 | "type": "zip", 1399 | "url": "https://api.github.com/repos/PHPCSStandards/PHP_CodeSniffer/zipball/6d4cf6032d4b718f168c90a96e36c7d0eaacb2aa", 1400 | "reference": "6d4cf6032d4b718f168c90a96e36c7d0eaacb2aa", 1401 | "shasum": "" 1402 | }, 1403 | "require": { 1404 | "ext-simplexml": "*", 1405 | "ext-tokenizer": "*", 1406 | "ext-xmlwriter": "*", 1407 | "php": ">=5.4.0" 1408 | }, 1409 | "require-dev": { 1410 | "phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0 || ^8.0 || ^9.3.4" 1411 | }, 1412 | "bin": [ 1413 | "bin/phpcbf", 1414 | "bin/phpcs" 1415 | ], 1416 | "type": "library", 1417 | "extra": { 1418 | "branch-alias": { 1419 | "dev-master": "3.x-dev" 1420 | } 1421 | }, 1422 | "notification-url": "https://packagist.org/downloads/", 1423 | "license": [ 1424 | "BSD-3-Clause" 1425 | ], 1426 | "authors": [ 1427 | { 1428 | "name": "Greg Sherwood", 1429 | "role": "Former lead" 1430 | }, 1431 | { 1432 | "name": "Juliette Reinders Folmer", 1433 | "role": "Current lead" 1434 | }, 1435 | { 1436 | "name": "Contributors", 1437 | "homepage": "https://github.com/PHPCSStandards/PHP_CodeSniffer/graphs/contributors" 1438 | } 1439 | ], 1440 | "description": "PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files and detects violations of a defined set of coding standards.", 1441 | "homepage": "https://github.com/PHPCSStandards/PHP_CodeSniffer", 1442 | "keywords": [ 1443 | "phpcs", 1444 | "standards", 1445 | "static analysis" 1446 | ], 1447 | "support": { 1448 | "issues": "https://github.com/PHPCSStandards/PHP_CodeSniffer/issues", 1449 | "security": "https://github.com/PHPCSStandards/PHP_CodeSniffer/security/policy", 1450 | "source": "https://github.com/PHPCSStandards/PHP_CodeSniffer", 1451 | "wiki": "https://github.com/PHPCSStandards/PHP_CodeSniffer/wiki" 1452 | }, 1453 | "funding": [ 1454 | { 1455 | "url": "https://github.com/PHPCSStandards", 1456 | "type": "github" 1457 | }, 1458 | { 1459 | "url": "https://github.com/jrfnl", 1460 | "type": "github" 1461 | }, 1462 | { 1463 | "url": "https://opencollective.com/php_codesniffer", 1464 | "type": "open_collective" 1465 | }, 1466 | { 1467 | "url": "https://thanks.dev/u/gh/phpcsstandards", 1468 | "type": "thanks_dev" 1469 | } 1470 | ], 1471 | "time": "2025-04-13T04:10:18+00:00" 1472 | }, 1473 | { 1474 | "name": "theseer/tokenizer", 1475 | "version": "1.2.3", 1476 | "source": { 1477 | "type": "git", 1478 | "url": "https://github.com/theseer/tokenizer.git", 1479 | "reference": "737eda637ed5e28c3413cb1ebe8bb52cbf1ca7a2" 1480 | }, 1481 | "dist": { 1482 | "type": "zip", 1483 | "url": "https://api.github.com/repos/theseer/tokenizer/zipball/737eda637ed5e28c3413cb1ebe8bb52cbf1ca7a2", 1484 | "reference": "737eda637ed5e28c3413cb1ebe8bb52cbf1ca7a2", 1485 | "shasum": "" 1486 | }, 1487 | "require": { 1488 | "ext-dom": "*", 1489 | "ext-tokenizer": "*", 1490 | "ext-xmlwriter": "*", 1491 | "php": "^7.2 || ^8.0" 1492 | }, 1493 | "type": "library", 1494 | "autoload": { 1495 | "classmap": [ 1496 | "src/" 1497 | ] 1498 | }, 1499 | "notification-url": "https://packagist.org/downloads/", 1500 | "license": [ 1501 | "BSD-3-Clause" 1502 | ], 1503 | "authors": [ 1504 | { 1505 | "name": "Arne Blankerts", 1506 | "email": "arne@blankerts.de", 1507 | "role": "Developer" 1508 | } 1509 | ], 1510 | "description": "A small library for converting tokenized PHP source code into XML and potentially other formats", 1511 | "support": { 1512 | "issues": "https://github.com/theseer/tokenizer/issues", 1513 | "source": "https://github.com/theseer/tokenizer/tree/1.2.3" 1514 | }, 1515 | "funding": [ 1516 | { 1517 | "url": "https://github.com/theseer", 1518 | "type": "github" 1519 | } 1520 | ], 1521 | "time": "2024-03-03T12:36:25+00:00" 1522 | } 1523 | ], 1524 | "aliases": [], 1525 | "minimum-stability": "stable", 1526 | "stability-flags": {}, 1527 | "prefer-stable": true, 1528 | "prefer-lowest": false, 1529 | "platform": {}, 1530 | "platform-dev": { 1531 | "php": ">=7.2 <8.4" 1532 | }, 1533 | "plugin-api-version": "2.6.0" 1534 | } 1535 | --------------------------------------------------------------------------------