codemash-io / codemash-php
PHP SDK for CodeMash.io
Installs: 3
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 1
Open Issues: 1
pkg:composer/codemash-io/codemash-php
Requires
- php: ^7.4
- guzzlehttp/guzzle: ^7.0.1
Requires (Dev)
- fzaninotto/faker: ^1.9
- phpunit/phpunit: ^8.5
- squizlabs/php_codesniffer: *
This package is auto-updated.
Last update: 2025-12-18 04:02:13 UTC
README
Php SDK for CodeMash
Versions
This repository is following semantic versioning.
Contributing
Versioning
Version is automatically bumped based on added label to the PR:
bump:patchbump:minorbump:major
For more information please see action-bumpr.
Testing
Unit tests
- Run:
composer install - Run:
composer run-script unit-tests
Feature tests
- Run:
composer install - Copy file
phpunit_feature.xml.disttophpunit_feature.xml - CodeMash Cloud setup:
- Create a test Project
- Enable all Modules for the Project
- Create a Collection. The schema must consist of these fields:
title- textemail- textaddress- textfile- file
- Create a Taxonomy and at least one Term for it
- Edit the Users Meta Template schema to include this field:
user_file- file type
- Create a new test Function in the Code module
- Create a test Push Notification Template
- CodeMash API environment variables need to be set. Can be overridden in
phpunit_feature.xmlfile:CODEMASH_API_SECRET_KEYCODEMASH_API_PROJECT_IDCODEMASH_API_TEST_COLLECTION_TITLECODEMASH_API_TEST_TAXONOMY_TITLECODEMASH_API_TEST_FUNCTION_IDCODEMASH_API_TEST_EMAIL_TEMPLATE_IDCODEMASH_API_TEST_PUSH_NOTIFICATION_TEMPLATE_ID
- Run:
compoer run-script feature-tests