refynd/cli

Command line interface for the Refynd PHP framework

1.0.1 2025-08-01 18:29 UTC

This package is auto-updated.

Last update: 2025-08-02 04:43:18 UTC


README

The official command-line interface for the Refynd PHP framework.

Installation

Install globally via Composer:

composer global require refynd/cli

Make sure your global Composer bin directory is in your PATH.

Available Commands

Project Creation

refynd new my-app              # Create new API application
refynd new my-app --template=webapp  # Create web application

Code Generation

refynd make:controller UserController        # Basic controller
refynd make:controller UserController --resource  # Resource controller
refynd make:controller ApiController --api   # API controller

refynd make:model User                        # Model class
refynd make:middleware AuthMiddleware         # Middleware class

Development

refynd serve                    # Start development server
refynd serve --port=8080        # Custom port
refynd serve --host=0.0.0.0     # Custom host

refynd test                     # Run tests
refynd test --coverage          # With coverage
refynd test --filter=UserTest   # Filter tests

Templates

API Template

  • REST API structure
  • Example controllers and routes
  • Database configuration
  • Testing setup

Web App Template (Coming Soon)

  • Full-stack web application
  • View templates
  • Asset compilation
  • Authentication scaffolding

Requirements

  • PHP 8.2 or higher
  • Composer
  • Refynd Framework ^2.0

Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

The Refynd CLI is open-sourced software licensed under the MIT license.