chromehive / yflite
YFlite developer kit: CLI scaffolding and project starter utilities.
Installs: 1
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Language:CSS
pkg:composer/chromehive/yflite
Requires
- php: ^7.4 || ^8.0
This package is auto-updated.
Last update: 2025-11-08 17:08:31 UTC
README
Overview
YFlite DevKit is a PHP package designed to streamline the setup and configuration of development environments. It provides a simple interface for initializing projects and includes a command-line tool for easy access.
Installation
You can install the package with Composer (when published to Packagist or your own repository):
composer require chromehive/yflite:dev-main
Usage
After installation, require Composer's autoloader and use the Starter class:
<?php require 'vendor/autoload.php'; use Chromehive\YFlite\Starter; $starter = new Starter(); $starter->initialize();
Examples
See examples/quickstart.php for a minimal example of using the DevKit in a project.
Running Tests
This project uses PHPUnit for tests. Install dev dependencies and run tests with Composer:
composer install --dev vendor/bin/phpunit
Contributing
Please see CONTRIBUTING.md for contribution guidelines.
License
This project is licensed under the MIT License — see the LICENSE file.
Developer Quickstart
After installing via Composer, the package provides:
public/directory with example web root and assets to get started locally (copy or symlink this to your web server's root if desired)- Example
config.phpandpath.phpfiles for typical development use. config.php.exampleandpath.php.exampletemplates — copy and configure for your own environment:
cp config.php.example config.php cp path.php.example path.php
Running the CLI
You can use the DevKit CLI tool with:
php yflite
This provides commands for scaffolding pages, CRUD, models, and routes. Run the binary with no arguments to see available commands and usage examples.
Localhost Dev Environment
Copy the included public/ directory into your web root, and make sure config.php and path.php are in the root of your project. Adjust as needed for your server stack:
- Apache/Nginx: set web root to
public/ - Start PHP built-in server:
php -S localhost:8000 -t public