Download the PHP package gregpriday/copy-tree without Composer

On this page you can find all versions of the php package gregpriday/copy-tree. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package copy-tree

Copy a Directory and Its Files to Your Clipboard with Ctree

Latest Version on Packagist Tests Total Downloads

Note: This tool is designed exclusively for MacOS and is not compatible with other operating systems.

Ctree is a command-line utility that effortlessly copies the structure and contents of a local directory or GitHub repository to your clipboard. It formats the output specifically for use with AI assistants such as Claude, ChatGPT, and Gemini, making it ideal for code analysis, generation, and sharing.

Features

Prerequisites

Installation

  1. Install via Composer (globally):

  2. Add Composer’s Global Bin to Your PATH:
    Edit your ~/.zshrc or ~/.bashrc and add:

  3. (Optional) Configure AI Features:
    Create a .env file in ~/.copytree/ and add your OpenAI credentials:

    Replace your-api-key and your-org-id with your actual values.

Quick Start

Workflows

Ctree is designed to integrate into various development processes. Detailed workflows are available for:

Advanced Usage

GitHub Integration

Ctree caches GitHub repositories in ~/.copytree/cache for improved performance.

AI Features

Intelligent File Filtering

Filter files using natural language:

For more details, see AI Features Documentation.

Smart Filename Generation

Automatically generate descriptive filenames when saving output:

Output Options

Git Filtering

Focus on changes with Git-based options:

These options are ideal for sharing recent changes or reviewing specific updates.

Ruleset System

Ctree’s flexible ruleset system lets you precisely control file selection:

  1. Configuration:
    Ctree creates a .ctree directory in your project to store ruleset configurations.

  2. Multiple Named Rulesets:
    Define and use custom rulesets (e.g., frontend.json, backend.json).

  3. Auto-detection:
    Ctree auto-selects appropriate rulesets for recognized project types (e.g., Laravel, SvelteKit).

To use a custom ruleset, run:

For more details, see:

Directory Structure

Ctree uses the following directory structure for configuration and output:

Contributing

Contributions are welcome! Please note that this project is MacOS-only. To contribute:

  1. Fork the repository.
  2. Create a feature branch.
  3. Make your changes.
  4. Submit a pull request.

Testing

Run the tests with:

Security

If you discover any security issues, please email [email protected] rather than using the issue tracker.

License

This project is licensed under the MIT License. See LICENSE.md for details.


All versions of copy-tree with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
ext-fileinfo Version *
caseyamcl/guzzle_retry_middleware Version ^2.12
civicrm/gitignore Version ^1.2
czproject/git-php Version ^4.3
illuminate/support Version ^11.15
openai-php/client Version ^0.10.3
symfony/console Version ^6.0|^7.0
symfony/finder Version ^7.1
symfony/process Version ^6.0|^7.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package gregpriday/copy-tree contains the following files

Loading the files please wait ....