cakephp-swagger-bake
testfixtures
Our great sponsors
cakephp-swagger-bake | testfixtures | |
---|---|---|
8 | 4 | |
56 | 1,046 | |
- | 2.8% | |
5.8 | 6.3 | |
2 months ago | 10 days ago | |
PHP | Go | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
cakephp-swagger-bake
-
Atlassian to shed 5 per cent of workers
I do work in that space. I build APIs and I use them. I built a springdoc for php so I know a bit about what I am talking about: https://github.com/cnizzardini/cakephp-swagger-bake
The Postman UX is not good on it. It's easy to get lost in tabs, they should ditch the tabs and categorize requests under the actual endpoint. There is also no way to easily save like requests and give them better names that is also searchable. It's also built on electron which means its slow and clunky.
There is nothing good in this space. Swagger would do it if they let you save requests to local browser storage and just added a history dropdown to the endpoints. I use swagger and save common requests to a file system and open them in sublime. if its just JSON payloads I am working with it does the job.
-
Scramble: Automatic API documentation generator for Laravel. No PHPDoc annotations required.
This https://github.com/cnizzardini/cakephp-swagger-bake and this https://mixerapi.com have been the result of my work.
- Accessing private properties in PHP
- Release v2.0.0 · cnizzardini/cakephp-swagger-bake
-
Testing PHP API for a small key-value database
This can easily integrate into your existing github actions, here is an example of its usage on a project I maintain: https://github.com/cnizzardini/cakephp-swagger-bake
-
Ask HN: What are some tools / libraries you built yourself?
https://github.com/cnizzardini/cakephp-swagger-bake which builds out openapi from your cakephp applications meta data. One of many projects I took up to occupy myself during covid lockdowns.
- Release v1.7.0 · SwaggerBake - An OpenAPI generator for CakePHP
-
Can you guys recommend a secure and fast framework for creating a REST API?
Really anything modern works. I thought Laravel was supposed to be easy to learn, but I have only poked around. Symfony is fine, I've done a lot in it. I've used CakePHP a ton and as a shameless promotion I built this OpenAPI/Swagger/Redoc generator for it: https://github.com/cnizzardini/cakephp-swagger-bake/ and if my side project was further a long I'd of course recommend: https://mixerapi.com buts its still alpha.
testfixtures
-
How to mock database calls
I'm the author of https://github.com/go-testfixtures/testfixtures, a library written to make it easier to write tests with a real database and test data. You might want to use it together with docker-compose, for example.
-
Integration tests with Go and testcontainers
To solve the problem we will use testfixtures. Create a folders fixtures и fixtures/storage and put a file users.yaml inside:
-
Mocking database or use a test database
A lot of good suggestions here, I would also take a look at go-testfixtures which allows you to create some simple yaml-based fixture data to use with unit testing. It's quick and easy, but yes can get unwieldy the more you add.
-
Ask HN: What are some tools / libraries you built yourself?
I built an alternative to Make written in Go that is simpler to use and cross-platform: https://taskfile.dev/
Also, a library to write tests with databases for Go: https://github.com/go-testfixtures/testfixtures
What are some alternatives?
fselect - Find files with SQL-like queries
go-vcr - Record and replay your HTTP interactions for fast, deterministic and accurate tests
Nullboard - Nullboard is a minimalist kanban board, focused on compactness and readability.
Hamcrest - Hamcrest matchers for the Go programming language
gutenberg - A fast static site generator in a single binary with everything built-in. https://www.getzola.org
ginkgo - A Modern Testing Framework for Go
PHP-CRUD-API - Single file PHP script that adds a REST API to a SQL database
GoSpec - Testing framework for Go. Allows writing self-documenting tests/specifications, and executes them concurrently and safely isolated. [UNMAINTAINED]
rupy - HTTP App. Server and JSON DB - Shared Parallel (Atomic) & Distributed
assert - :exclamation:Basic Assertion Library used along side native go testing, with building blocks for custom assertions
Pion WebRTC - Pure Go implementation of the WebRTC API
dbcleaner - Clean database for testing, inspired by database_cleaner for Ruby