https://github.com/codemash-io/codemash.php
CodeMash provides many common back-end services for you so you can focus on your front-end. Services such as database, email and push notifications, authentication, file storage, and many others are already implemented and can be easily accessed through the CodeMash dashboard or API.
https://github.com/codemash-io/codemash.php
backend backend-api backend-services database email-sender email-template logging payments push push-notifications scheduler server-events serverless serverless-functions storage storage-api
Last synced: 6 months ago
JSON representation
CodeMash provides many common back-end services for you so you can focus on your front-end. Services such as database, email and push notifications, authentication, file storage, and many others are already implemented and can be easily accessed through the CodeMash dashboard or API.
- Host: GitHub
- URL: https://github.com/codemash-io/codemash.php
- Owner: codemash-io
- License: mit
- Created: 2020-09-04T11:28:42.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-01-30T20:33:08.000Z (about 5 years ago)
- Last Synced: 2025-10-06T08:44:45.705Z (6 months ago)
- Topics: backend, backend-api, backend-services, database, email-sender, email-template, logging, payments, push, push-notifications, scheduler, server-events, serverless, serverless-functions, storage, storage-api
- Language: PHP
- Homepage: https://codemash.io
- Size: 60.5 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CodeMash.Php
Php SDK for CodeMash
## Versions
This repository is following [semantic versioning](https://semver.org/).
## Contributing
### Versioning
Version is automatically bumped based on added label to the PR:
* `bump:patch`
* `bump:minor`
* `bump:major`
For more information please see [action-bumpr](https://github.com/haya14busa/action-bumpr).
## Testing
### Unit tests
1. Run: `composer install`
2. Run: `composer run-script unit-tests`
### Feature tests
1. Run: `composer install`
2. Copy file `phpunit_feature.xml.dist` to `phpunit_feature.xml`
3. CodeMash Cloud setup:
- Create a test Project
- Enable all Modules for the Project
- Create a Collection. The schema **must** consist of these fields:
- `title` - text
- `email` - text
- `address` - text
- `file` - 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
4. CodeMash API environment variables need to be set. Can be overridden in `phpunit_feature.xml` file:
- `CODEMASH_API_SECRET_KEY`
- `CODEMASH_API_PROJECT_ID`
- `CODEMASH_API_TEST_COLLECTION_TITLE`
- `CODEMASH_API_TEST_TAXONOMY_TITLE`
- `CODEMASH_API_TEST_FUNCTION_ID`
- `CODEMASH_API_TEST_EMAIL_TEMPLATE_ID`
- `CODEMASH_API_TEST_PUSH_NOTIFICATION_TEMPLATE_ID`
5. Run: `compoer run-script feature-tests`