PHPackages                             bernardosecades/test - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. bernardosecades/test

ActiveLibrary

bernardosecades/test
====================

Test

07Go

Since Apr 7Pushed 3y ago1 watchersCompare

[ Source](https://github.com/bernardosecades/test)[ Packagist](https://packagist.org/packages/bernardosecades/test)[ RSS](/packages/bernardosecades-test/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (6)Used By (0)

Purchase Test
=============

[](#purchase-test)

[![CI Tests](https://github.com/bernardosecades/test/actions/workflows/test.yml/badge.svg)](https://github.com/bernardosecades/test/actions/workflows/test.yml)

Run project in your local
=========================

[](#run-project-in-your-local)

`docker-compose up -d`

You can check if all is running with:

`docker-compose ps`

Note: This will stop all containers and remove them (if you have some lock file with mysql problem):

`docker stop $(docker ps -a -q)``docker rm $(docker ps -a -q)`

BloomRPC:

`localhost:3333`

Load in BloomRPC the file `proto/protobuf/api/purchase.proto`:

[![Demo](demo.gif)](demo.gif)

Structure folder project
========================

[](#structure-folder-project)

`.docker`: we have dockerfiles for each binary, in this case only have api dockerfile, the worker folder is an example if we had other binaries.

`.github/workflows`: we have the workflow test.yml with two jobs executing in the pipeline of github (execute in parallel: unit and e2e test)

`cmd`: we have the main files for each binary, in this case only have api, the worker folder is an example if we had other binaries.

`platform`:

- `k8s`: here we have folder for kubernetes with helm chart files for integration and production environment. It is empty but is to show the structure of each microservice
- `local`: here only we have the schema.sql loaded in docker-compose to use in local environment and in the pipeline of github.

`proto`: we have proto file to define contracts, they are located in `proto/protobuf` and the folder `proto/go` contains protocol buffers compiled to go language.

`internal`: we have controllers for grpc purchase service and the package purchase. As well we have kit package with helpers to work with uuids and load fixtures in E2E/Integration tests.

Makefile
========

[](#makefile)

`makefile help`

`makefile test-unit`: execute inside of container test with tag: `unit`.

`makefile test-e2e`: execute inside of container test with tag: `e2e`.

`makefile test-all`: execute inside of container test with tag: `unit` and `e2e`.

`makefile lint`: execut linter with fix to go language.

Compile protocol buffers
========================

[](#compile-protocol-buffers)

we have the folder proto, this folder can be in other repository and use it like dependency but to simplify we have all in the same repository.

Read readme file: [README.md](proto/README.md)

Inside of the folder `proto` we have a Makefile so to compile the `purchase.proto` file:

`cd proto``make proto`

And this will generate the folder `proto/go/protobuf/api` with file `purchase.pb.go`.

Note: in this case we generate to go language but we can modify the Makefile to compile for `java`, `phyton`, ...

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1932461?v=4)[Bernardo Secades](/maintainers/bernardosecades)[@bernardosecades](https://github.com/bernardosecades)

---

Top Contributors

[![bernardosecades](https://avatars.githubusercontent.com/u/1932461?v=4)](https://github.com/bernardosecades "bernardosecades (5 commits)")

### Embed Badge

![Health badge](/badges/bernardosecades-test/health.svg)

```
[![Health](https://phpackages.com/badges/bernardosecades-test/health.svg)](https://phpackages.com/packages/bernardosecades-test)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
