Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/patrykbaszak/sdk-bundle

SDK Bundle is used to create HTTP clients to work with the Symfony framework. The purpose of the SDK is to handle mapping, integration tests, event generation, and easy creation of new SDKs to be shared within the microservices cluster.
https://github.com/patrykbaszak/sdk-bundle

Last synced: 8 days ago
JSON representation

SDK Bundle is used to create HTTP clients to work with the Symfony framework. The purpose of the SDK is to handle mapping, integration tests, event generation, and easy creation of new SDKs to be shared within the microservices cluster.

Awesome Lists containing this project

README

        

# SDK Bundle #

SDK Bundle is used to create HTTP clients to work with the Symfony framework. The purpose of the SDK is to handle mapping, integration tests, event generation, and easy creation of new SDKs to be shared within the microservices cluster.

## Development

Start local environment using this command:
```sh
bash start.sh
```

### How to use **Standard Version**

If You don't have node_modules directory run:
```sh
npm install
```

First release:
```sh
npm run version:first-release
```

`Major`, `Minor`, `Patch` version update:
```sh
npm run version:major
# or
npm run version:minor
# or
npm run version:patch
```

Push tags:
```sh
npm run version:release
# or
npm run release
```

Check `package.json` for understand what commands do.

### How to use **PHPStan**

Main command:
```bash
docker exec php composer code:analyse
```
but, if You need to add errors to ignored:
```bash
docker exec php composer code:analyse:b
```

### How to use **PHP CS Fixer**

```bash
docker exec php composer code:fix
```

### How to use **XDebug** in **Visual Studio Code**

Create new file in Your project: `.vscode/launch.json`
```json
{
"version": "0.2.0",
"configurations": [
{
"name": "Listen for xDebug",
"type": "php",
"request": "launch",
"port": 5902,
"hostname": "0.0.0.0",
"pathMappings": {
"/app/": "${workspaceRoot}"
}
}
]
}
```

Uncomment environments in `.env.local`:
```env
XDEBUG_MODE=develop,debug
XDEBUG_CONFIG=" client_port=5902 idekey=VSCODE client_host=host.docker.internal discover_client_host=0 start_with_request=yes"
```

Type `Ctrl + Shift + D` and run `Listen for xDebug`.