Git Product home page Git Product logo

camel-to-snake's Introduction

CamelCase to SnakeCase Conversion Tool for PHP

This tool provides an interactive and user-friendly way to convert PHP variable names from camelCase to snake_case, ensuring consistency across your codebase and adherence to PSR coding standards.

Features

  • Accurate Parsing: Reliably identifies camelCase variable names, even in complex code structures.
  • User-Friendly Output: Offers a color-coded, easy-to-read CLI output, enhancing user experience.
  • Code Consistency: Promotes a standardized codebase by ensuring adherence to PSR coding standards.

Installation

To install the CamelCase to SnakeCase Conversion Tool, follow these steps:

  1. Clone the repository
git clone https://github.com/yourusername/camel-to-snake.git
  1. Navigate to the project directory
cd camel-to-snake
  1. Install the required dependencies:
npm install

Compilation

This tool is written in TypeScript. To compile the TypeScript files to JavaScript, run:

tsc

Usage

  1. Ensure you have compiled the TypeScript files to JavaScript.
  2. Run the tool using the following command:
node convert.js /path/to/your/php/file.php

Replace /path/to/your/php/file.php with the path to the PHP file you want to convert. 3. Follow the interactive prompts to review and apply the suggested variable name changes.

camel-to-snake's People

Contributors

yihaowang avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.