One Hat Cyber Team
Your IP:
216.73.216.30
Server IP:
198.54.114.155
Server:
Linux server71.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
Server Software:
LiteSpeed
PHP Version:
5.6.40
Create File
|
Create Folder
Execute
Dir :
~
/
proc
/
self
/
cwd
/
View File Name :
.github.tar
PULL_REQUEST_TEMPLATE.md 0000644 00000002547 15105663760 0010366 0 ustar 00 <!--- Provide a general summary of your changes in the Title above --> ## Description <!--- Describe your changes in detail --> ## Motivation and Context <!--- Why is this change required? What problem does it solve? --> <!--- If it fixes an open issue, please link to the issue here. --> ## How Has This Been Tested? <!--- Please describe in detail how you tested your changes. --> <!--- Include details of your testing environment, and the tests you ran to --> <!--- see how your change affects other areas of the code, etc. --> ## Screenshots (if appropriate): ## Types of changes <!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: --> - [ ] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to change) - [ ] Documentation only (no code changes) ## Checklist: <!--- Go over all the following points, and put an `x` in all the boxes that apply. --> <!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> - [ ] My code follows the code style of this project. - [ ] My change requires a change to the documentation. - [ ] I have updated the documentation accordingly. - [ ] I have added tests to cover my changes. - [ ] All new and existing tests passed. ISSUE_TEMPLATE.md 0000644 00000002312 15105663760 0007260 0 ustar 00 <!--- Provide a general summary of the issue in the Title above --> ## Expected Behavior <!--- If you're describing a bug, tell us what should happen --> <!--- If you're suggesting a change/improvement, tell us how it should work --> ## Current Behavior <!--- If describing a bug, tell us what happens instead of the expected behavior --> <!--- If suggesting a change/improvement, explain the difference from current behavior --> ## Possible Solution <!--- Not obligatory, but suggest a fix/reason for the bug, --> <!--- or ideas how to implement the addition or change --> ## Steps to Reproduce (for bugs) <!--- Provide a link to a live example, or an unambiguous set of steps to --> <!--- reproduce this bug. Include code to reproduce, if relevant --> 1. 2. 3. 4. ## Context <!--- How has this issue affected you? What are you trying to accomplish? --> <!--- Providing context helps us come up with a solution that is most useful in the real world --> ## Your Environment <!--- Include as many relevant details about the environment you experienced the bug in --> * Version used: * Environment name and version (e.g. Chrome 39, node.js 5.4): * Operating System and version (desktop or mobile): * Link to your project: workflows/tests.yml 0000644 00000001567 15105663760 0010510 0 ustar 00 name: tests on: push: pull_request: jobs: tests: runs-on: ubuntu-latest strategy: matrix: php: ['7.0', '7.1', '7.2', '7.3', '7.4', '8.0'] name: PHP ${{ matrix.php }} steps: - name: Checkout code uses: actions/checkout@v2 - name: Setup PHP uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php }} extensions: curl tools: composer:v2 coverage: none - name: Install PHP 7 dependencies run: composer update --prefer-dist --no-interaction --no-progress if: "matrix.php != '8.0'" - name: Install PHP 8 dependencies run: composer update --prefer-dist --no-interaction --no-progress --ignore-platform-reqs if: "matrix.php == '8.0'" - name: Execute tests run: vendor/bin/phpunit -c tests/phpunit.xml.dist workflows/pint.yml 0000644 00000001017 15105663760 0010306 0 ustar 00 name: Check & fix styling on: [push] jobs: pint: runs-on: ubuntu-latest steps: - name: Checkout code uses: actions/checkout@v3 with: ref: ${{ github.head_ref }} - name: Setup PHP uses: shivammathur/setup-php@v2 - name: Install Pint run: composer global require laravel/pint - name: Run Pint run: pint - name: Commit changes uses: stefanzweifel/git-auto-commit-action@v4 with: commit_message: Fix styling ISSUE_TEMPLATE/feature_request.md 0000644 00000001060 15107305304 0012447 0 ustar 00 --- name: Feature request about: Suggest an idea for this project --- **Is your feature request related to a problem? Please describe.** A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] **Describe the solution you'd like** A clear and concise description of what you want to happen. **Describe alternatives you've considered** A clear and concise description of any alternative solutions or features you've considered. **Additional context** Add any other context or screenshots about the feature request here. ISSUE_TEMPLATE/bug_report.md 0000644 00000001407 15107305304 0011421 0 ustar 00 --- name: Bug report about: Create a report to help us improve --- > For support request no related with bugs or feature requests for this SDK, please use the official developers support channel https://mercadopago.com.ar/developers/es/support/ **Describe the bug** A clear and concise description of what the bug is. **To Reproduce** Steps to reproduce the behavior: 1. Go to '...' 2. Using this snippet '....' 3. See error **Expected behavior** A clear and concise description of what you expected to happen. **Screenshots** If applicable, add screenshots to help explain your problem. **Server (please complete the following information):** - OS: [e.g. iOS] - WebServer - Version [e.g. 22] **Additional context** Add any other context about the problem here. workflows/php.yml 0000644 00000002512 15107305304 0010111 0 ustar 00 name: PHP Composer on: push: branches: [ master ] pull_request: branches: [ master ] jobs: build: runs-on: ubuntu-latest strategy: matrix: php-version: ['7.1', '7.2', '7.3', '7.4', '8.0'] steps: - name: Checkout uses: actions/checkout@v2 - name: Setup PHP ${{ matrix.php-version }} uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php-version }} extensions: mbstring, intl ini-values: post_max_size=256M, short_open_tag=On coverage: xdebug tools: php-cs-fixer, phpunit - name: Validate composer.json and composer.lock run: composer validate - name: Cache Composer packages id: composer-cache uses: actions/cache@v2 with: path: vendor key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }} restore-keys: | ${{ runner.os }}-php- - name: Install dependencies if: steps.composer-cache.outputs.cache-hit != 'false' run: composer install --prefer-dist --no-progress - name: Run test suite run: composer run-script test env: ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }} USER_EMAIL: ${{ secrets.USER_EMAIL }} CLIENT_ID: ${{ secrets.CLIENT_ID }} CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }} ISSUE_TEMPLATE/issue_report.yml 0000644 00000003122 15110767115 0012177 0 ustar 00 name: issue.md description: Create a report to help us improve labels: ["issue"] body: - type: markdown attributes: value: | Thanks for taking the time to fill out this issue report! - type: textarea id: repro-steps attributes: label: Steps to reproduce the behavior description: placeholder: | 1. Fetch a '...' 2. Update the '....' 3. See error validations: required: true - type: textarea id: expected-behavior attributes: label: Expected behavior description: A clear and concise description of what you expected to happen. validations: required: true - type: textarea id: actual-behavior attributes: label: Actual behavior description: A clear and concise description of what actually happen. validations: required: true - type: textarea id: code-snippets attributes: label: Code snippets description: If applicable, add code snippets to help explain your problem. render: Php validations: required: false - type: input id: language-version attributes: label: Php version placeholder: Php v7.4 validations: required: true - type: input id: lib-version attributes: label: Library version placeholder: razorpay-php v2.8.4 validations: required: true - type: textarea id: additional-context attributes: label: Additional Information description: Add any other information about the problem here. validations: required: false ISSUE_TEMPLATE/feature.yml 0000644 00000002047 15110767115 0011114 0 ustar 00 name: feature.md description: Submit a proposal for a new feature title: '[Feature]: ' labels: [':rocket: Feature Request'] body: - type: markdown attributes: value: | ### Thank you for taking the time to suggest a new feature! We kindly ask that you search to see if an issue [already exists](https://github.com/razorpay/razorpay-php/issues?q=is%3Aissue+sort%3Acreated-desc+) for your feature. We are also happy to accept contributions from our users. - type: textarea id: description attributes: label: '🚀 Feature Proposal' description: validations: required: true - type: textarea id: solution attributes: label: Suggested Solution description: validations: required: true - type: textarea id: alternatives attributes: label: Alternatives description: validations: required: false - type: textarea id: extra attributes: label: Additional Information description: validations: required: true pull_request_template.md 0000644 00000000757 15110767115 0011522 0 ustar 00 ## Note :- Please follow the below points while attaching test cases document link below: ### - If label `Tested` is added then test cases document URL is mandatory. ### - Link added should be a valid URL and accessible throughout the org. ### - If the branch name contains hotfix / revert by default the BVT workflow check will pass. | Test Case Document URL | |-----------------------------------------------| | Please paste test case document link here.... | workflows/security.yml 0000644 00000004432 15110767115 0011202 0 ustar 00 name: SecurityChecks on: pull_request: {} push: branches: ["master"] schedule: - cron: '30 20 * * *' jobs: semgrep: name: Scan runs-on: [ubuntu-latest] # nosemgrep : semgrep.dev/s/swati31196:github_provided_runner steps: - uses: actions/checkout@v2 - uses: returntocorp/semgrep-action@v1 with: publishToken: ${{ secrets.SEMGREP_APP_TOKEN }} publishDeployment: 339 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} workflow_status: runs-on: [ ubuntu-latest ] # nosemgrep : semgrep.dev/s/swati31196:github_provided_runner name: Update Status Check needs: [ semgrep ] if: always() env: githubCommit: ${{ github.event.pull_request.head.sha }} steps: - name: Set github commit id run: | if [ "${{ github.event_name }}" = "push" ] || [ "${{ github.event_name }}" = "schedule" ]; then echo "githubCommit=${{ github.sha }}" >> $GITHUB_ENV fi exit 0 - name: Failed id: failed if: (contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled')) && github.ref != 'refs/heads/master' run: | echo 'Failing the workflow for github security status check.' curl -X POST -H "Content-Type: application/json" -H "Authorization: token ${{ github.token }}" \ -d '{ "state" : "failure" , "context" : "github/security-status-check" , "description" : "github/security-status-check", "target_url" : "https://github.com/${{ github.repository }}" }' \ https://api.github.com/repos/${{ github.repository }}/statuses/${{ env.githubCommit }} exit 1 - name: Success if: steps.failed.conclusion == 'skipped' || github.ref != 'refs/heads/master' run: | echo 'Status check has passed!' curl -X POST -H "Content-Type: application/json" -H "Authorization: token ${{ github.token }}" \ -d '{ "state" : "success" , "context" : "github/security-status-check" , "description" : "github/security-status-check", "target_url" : "https://github.com/${{ github.repository }}" }' \ https://api.github.com/repos/${{ github.repository }}/statuses/${{ env.githubCommit }} exit 0 workflows/ci.yml 0000644 00000002560 15110767115 0007726 0 ustar 00 name: CI on: push: branches: - master tags: - v[0-9]+.[0-9]+.[0-9]+* pull_request: branches: - master jobs: run: runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v2 - name: Set up php 8.0 uses: shivammathur/setup-php@v2 with: php-version: '8.0' - name: 'Create env file' run: | touch ${{ github.workspace }}/tests/.env echo RAZORPAY_API_KEY=${{ secrets.RAZORPAY_API_KEY }} >> ${{ github.workspace }}/tests/.env echo RAZORPAY_API_SECRET=${{ secrets.RAZORPAY_API_SECRET }} >> ${{ github.workspace }}/tests/.env cat ${{ github.workspace }}/tests/.env - name: Install dependencies run: composer self-update && composer install && composer require vlucas/phpdotenv && composer dump-autoload - name: Run tests and collect coverage run: vendor/bin/phpunit ./tests/CoverageTest.php --coverage-clover coverage.xml . env: RAZORPAY_API_KEY: ${{ secrets.RAZORPAY_API_KEY }} RAZORPAY_API_SECRET: ${{ secrets.RAZORPAY_API_SECRET }} RAZORPAY_PARTNER_API_KEY: ${{ secrets.RAZORPAY_PARTNER_API_KEY }} RAZORPAY_PARTNER_API_SECRET: ${{ secrets.RAZORPAY_PARTNER_API_SECRET }} - name: Upload coverage to Codecov uses: codecov/codecov-action@v3 dependabot.yml 0000644 00000000221 15110767115 0007373 0 ustar 00 version: 2 updates: - package-ecosystem: composer directory: "/" schedule: interval: daily time: "04:00" timezone: Asia/Calcutta FUNDING.yml 0000644 00000000100 15111163452 0006347 0 ustar 00 github: spatie custom: https://spatie.be/open-source/support-us workflows/ci.yaml 0000644 00000005365 15111163453 0010071 0 ustar 00 name: "Continuous Integration" on: - pull_request - push env: COMPOSER_ROOT_VERSION: 1.99 jobs: composer-json-lint: name: "Lint composer.json" runs-on: "ubuntu-latest" strategy: matrix: php-version: - "8.1" steps: - name: "Checkout" uses: "actions/checkout@v2" - name: "Install PHP" uses: "shivammathur/setup-php@v2" with: coverage: "none" php-version: "${{ matrix.php-version }}" tools: composer-normalize - name: "Get composer cache directory" id: composercache run: echo "::set-output name=dir::$(composer config cache-files-dir)" - name: "Cache dependencies" uses: actions/cache@v2 with: path: ${{ steps.composercache.outputs.dir }} key: ${{ runner.os }}-php-${{ matrix.php-version }}-${{ matrix.dependencies }}-composer-${{ hashFiles('**/composer.json') }} restore-keys: ${{ runner.os }}-php-${{ matrix.php-version }}-${{ matrix.dependencies }}-composer- - name: "Install dependencies" run: "composer update --no-interaction --no-progress" - name: "Validate composer.json" run: "composer validate --strict" - name: "Normalize composer.json" run: "composer-normalize --dry-run" tests: name: "Tests" runs-on: "ubuntu-latest" strategy: matrix: php-version: - "7.1" - "7.2" - "7.3" - "7.4" - "8.0" - "8.1" dependencies: - "lowest" - "highest" steps: - name: "Checkout" uses: "actions/checkout@v2" - name: "Install PHP" uses: "shivammathur/setup-php@v2" with: php-version: "${{ matrix.php-version }}" ini-values: zend.assertions=1 - name: "Get composer cache directory" id: composercache run: echo "::set-output name=dir::$(composer config cache-files-dir)" - name: "Cache dependencies" uses: actions/cache@v2 with: path: ${{ steps.composercache.outputs.dir }} key: ${{ runner.os }}-php-${{ matrix.php-version }}-${{ matrix.dependencies }}-composer-${{ hashFiles('**/composer.json') }} restore-keys: ${{ runner.os }}-php-${{ matrix.php-version }}-${{ matrix.dependencies }}-composer- - name: "Install lowest dependencies" if: ${{ matrix.dependencies == 'lowest' }} run: "composer update --no-interaction --no-progress --prefer-lowest" - name: "Install highest dependencies" if: ${{ matrix.dependencies == 'highest' }} run: "composer update --no-interaction --no-progress" - name: "Run tests" timeout-minutes: 3 run: "vendor/bin/phpunit" workflows/run-tests.yml 0000644 00000002400 15111372776 0011276 0 ustar 00 name: Tests on: [push, pull_request] jobs: test: runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: os: [ubuntu-latest] php: [8.1, 8.0] dependency-version: [prefer-lowest, prefer-stable] name: P${{ matrix.php }} - ${{ matrix.dependency-version }} - ${{ matrix.os }} steps: - name: Checkout code uses: actions/checkout@v2 - name: Install and start test server run: | cd tests/server npm install (node server.js &) || /bin/true - name: Wait for server bootup run: sleep 5 - name: Setup PHP uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php }} extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick coverage: none - name: Install dependencies run: composer update --no-interaction --prefer-source --no-suggest - name: Execute tests run: vendor/bin/phpunit workflows/update-changelog.yml 0000644 00000001205 15111372776 0012543 0 ustar 00 name: "Update Changelog" on: release: types: [released] jobs: update: runs-on: ubuntu-latest steps: - name: Checkout code uses: actions/checkout@v2 with: ref: main - name: Update Changelog uses: stefanzweifel/changelog-updater-action@v1 with: latest-version: ${{ github.event.release.name }} release-notes: ${{ github.event.release.body }} - name: Commit updated CHANGELOG uses: stefanzweifel/git-auto-commit-action@v4 with: branch: main commit_message: Update CHANGELOG file_pattern: CHANGELOG.md workflows/php-cs-fixer.yml 0000644 00000000766 15111372776 0011654 0 ustar 00 name: Check & fix styling on: [push] jobs: php-cs-fixer: runs-on: ubuntu-latest steps: - name: Checkout code uses: actions/checkout@v2 with: ref: ${{ github.head_ref }} - name: Run PHP CS Fixer uses: docker://oskarstark/php-cs-fixer-ga with: args: --config=.php_cs.dist --allow-risky=yes - name: Commit changes uses: stefanzweifel/git-auto-commit-action@v4 with: commit_message: Fix styling ISSUE_TEMPLATE/config.yml 0000644 00000000575 15111412653 0010725 0 ustar 00 contact_links: - name: Twilio Support url: https://twilio.com/help/contact about: Get Support - name: Stack Overflow url: https://stackoverflow.com/questions/tagged/twilio-php+or+twilio+php about: Ask questions on Stack Overflow - name: Documentation url: https://www.twilio.com/docs/libraries/reference/twilio-php about: View Reference Documentation workflows/pr-lint.yml 0000644 00000000655 15111412653 0010716 0 ustar 00 name: Lint PR on: pull_request_target: types: [ opened, edited, synchronize, reopened ] jobs: validate: name: Validate title runs-on: ubuntu-latest steps: - uses: amannn/action-semantic-pull-request@v5 with: types: | chore docs fix feat misc test env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} workflows/test-and-deploy.yml 0000644 00000007253 15111412653 0012343 0 ustar 00 name: Test and Deploy on: push: branches: [ '*' ] tags: [ '*' ] pull_request: branches: [ main ] schedule: # Run automatically at 8AM PST Monday-Friday - cron: '0 15 * * 1-5' workflow_dispatch: jobs: test: name: Test runs-on: ubuntu-latest timeout-minutes: 20 strategy: matrix: php: [ 7.2, 7.3, 7.4, 8.0, 8.1 ] dependencies: - "lowest" - "highest" steps: - name: Checkout twilio-php uses: actions/checkout@v3 with: fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis - name: Setup PHP Action uses: shivammathur/setup-php@2.15.0 with: php-version: ${{ matrix.php }} coverage: xdebug id: php - name: Composer webhook config run: composer config -g github-oauth.github.com ${{ secrets.GITHUB_TOKEN }} - name: Update Dependencies if: matrix.dependencies == 'lowest' run: composer update --prefer-lowest --prefer-stable -n - name: Run Tests run: make install test - name: Fix code coverage paths run: | if [ -f "coverage.xml" ]; then sed -i 's@'$GITHUB_WORKSPACE'@/github/workspace/@g' coverage.xml fi - name: Install SonarCloud scanner and run analysis uses: SonarSource/sonarcloud-github-action@master if: (github.event_name == 'pull_request' || github.ref_type == 'branch') && !github.event.pull_request.head.repo.fork && matrix.php == '8.1' && matrix.dependencies == 'highest' env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} deploy: name: Deploy if: success() && github.ref_type == 'tag' needs: [ test ] runs-on: ubuntu-latest steps: - name: Checkout twilio-php uses: actions/checkout@v3 with: fetch-depth: 0 - name: Install dependencies run: composer install - name: Login to Docker Hub uses: docker/login-action@v2 with: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_AUTH_TOKEN }} # The expression strips off the shortest match from the front of the string to yield just the tag name as the output - name: Get tagged version run: echo "GITHUB_TAG=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV - name: Create GitHub Release uses: sendgrid/dx-automator/actions/release@main env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Build & Push docker image run: make docker-build docker-push - name: Submit metric to Datadog uses: sendgrid/dx-automator/actions/datadog-release-metric@main env: DD_API_KEY: ${{ secrets.DATADOG_API_KEY }} notify-on-failure: name: Slack notify on failure if: failure() && github.event_name != 'pull_request' && (github.ref == 'refs/heads/main' || github.ref_type == 'tag') needs: [ test, deploy ] runs-on: ubuntu-latest steps: - uses: rtCamp/action-slack-notify@v2 env: SLACK_COLOR: failure SLACK_ICON_EMOJI: ':github:' SLACK_MESSAGE: ${{ format('Test *{0}*, Deploy *{1}*, {2}/{3}/actions/runs/{4}', needs.test.result, needs.deploy.result, github.server_url, github.repository, github.run_id) }} SLACK_TITLE: Action Failure - ${{ github.repository }} SLACK_USERNAME: GitHub Actions SLACK_MSG_AUTHOR: twilio-dx SLACK_FOOTER: Posted automatically using GitHub Actions SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} MSG_MINIMAL: true