Download the PHP package duanestorey/ai-tools without Composer

On this page you can find all versions of the php package duanestorey/ai-tools. 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 ai-tools

AI Tools

A Composer package for generating AI-friendly project overviews. This tool creates a comprehensive markdown file that provides AI assistants with a complete overview of your project structure and key files, making it easier for AI to understand your codebase context.

Installation

Via Composer

Manual Installation

  1. Clone this repository
  2. Run composer install in the cloned directory
  3. Link the executable to your project's vendor/bin directory

Usage

Basic Usage

After installation, you can generate an AI-friendly overview of your project:

This will create an ai-overview.md file in your project root with:

  1. Project Information: Details about the detected project type and framework
  2. Directory Tree: A complete ASCII representation of your project structure (excluding directories and files specified in the configuration)
  3. Package JSON: Contents of package.json (if exists in your project)
  4. Composer JSON: Contents of your composer.json file
  5. README: Contents of your project's README.md file (if exists)
  6. Git Information: Repository URL, branches, and git configuration
  7. Environment Variables: Keys from .env files (values omitted for security)

For Laravel projects, additional sections are automatically included:

  1. Laravel Routes: API and web routes with their controllers
  2. Database Schema: Table structure extracted from migrations and models

For comprehensive AI analysis, you can also generate a complete overview that includes the full content of all code files:

This will create an ai-overview-all.md file that includes everything in the regular overview plus the full content of all code files in your project (respecting the exclusion settings in your configuration). This is particularly useful when you want to provide a complete view of your codebase to AI tools for deep analysis.

Code Quality Tools

This package includes several tools to maintain code quality:

You can run these tools using the following commands:

Integrating with Build Processes

Composer Scripts

Add the command to your composer.json scripts section for easy execution:

Now you can run composer generate-ai-overview to generate the overview, or it will automatically run as part of your build process when you execute composer build.

CI/CD Integration

Add the overview generation to your CI/CD pipeline to ensure it's always up-to-date:

Git Hooks

You can use Git hooks to automatically generate the overview before commits or pushes:

Configuration

The tool can be configured using a .ai-tools.json file in your project root. To create an example configuration file, run:

This will create a .ai-tools.json file with default settings and add it to your .gitignore file if one exists.

Here's an example configuration file:

Configuration Options

How It Works

Project Type Detection

The tool automatically detects the type of project you're working with. Currently, it can identify:

Based on the detected project type, the tool automatically includes framework-specific information in the overview.

Viewer Architecture

The tool uses a plugin-based architecture with "viewers" for different content types. Each viewer is responsible for generating a specific section of the overview file. The current viewers include:

Core Viewers (Always Included)

Framework-Specific Viewers

Laravel Viewers (Only included for Laravel projects):

The tool detects changes in your project and only regenerates the overview file when necessary, making it efficient even in watch mode.

Benefits for AI Assistants

When working with AI coding assistants, the ai-overview.md file provides:

  1. Immediate project structure understanding without requiring multiple queries
  2. Context about dependencies and project configuration
  3. Access to your project's documentation

This helps AI assistants provide more accurate and contextually relevant assistance from the start of your conversation.

Extending the Tool

You can extend the tool with custom viewers by implementing the ViewerInterface. This allows you to include additional project information that might be helpful for AI assistants.

License

MIT


All versions of ai-tools with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
symfony/console Version *
symfony/finder Version *
symfony/filesystem Version *
symfony/process Version *
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 duanestorey/ai-tools contains the following files

Loading the files please wait ...