cakephp / cakephp/phinx

Json Support for all actions

Open
#1,019 6 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

feature
Dominant language
PHP
Stars
4.5k
Forks
884
PR merge metrics
No merged PRs in 30d

Description

hey Guys,

I am in Love with Phinx, but one thing is missing for me.
I'd love to see a json output for all actions that can be taken via terminal/webapp.

Currently only the Status Method returns json on request, but it would be nice if you could call everything within php and get nice responses.

As Use Case i see an Api with Endpoints to migrate, rollback, getStatus, create Migrations etc etc.

If someone guides me in the right direction where to start such a feature, i'd love to send in pull requests.

Greets Marcus

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the existing status method, which is the only action described as returning JSON, and then map the terminal and webapp actions named in the issue. Define the response contract for migrate, rollback, getStatus, and create migrations; done means these actions can be called within PHP and return consistent JSON responses.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
api
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.