Download the PHP package gemvc/installer without Composer

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

geminstaller

installer package for gemvc framework

Overview

GEMVC Framework is built on top of GEMVC Library (v3.27.8), providing a structured approach to building microservice-based RESTful APIs. The framework adds additional features and conventions on top of the library's core functionality.

AI Assistant Learning Process (RESTRICTED - HIGH IMPORTANCE)

For AI assistants, the following learning process is mandatory and must be followed in strict order:

  1. Study Working Examples (First Priority)

    • Location: /app folder
    • Purpose: Understand real-world implementation patterns
    • Files to study:
      • /app/api/*.php - API service implementations
      • /app/controller/*.php - Controller implementations
      • /app/model/*.php - Model implementations
      • /app/table/*.php - Table implementations
    • Focus: Learn from existing working code before attempting any implementation
  2. Read Framework Documentation

    • Location: README.md (this file)
    • Purpose: Understand framework structure and basic concepts
    • Focus: Framework overview, installation, and basic usage
  3. Study AI Assistant Rules

    • Location: GEMVCAIAssistantRules.json
    • Purpose: Understand framework-specific guidelines
    • Focus: Rules, conventions, and best practices
  4. Framework and Library Documentation
    • Location:
      • /vendor/gemvc/framework/Documentation.md
      • /vendor/gemvc/library/Documentation.md
    • Purpose: Deep understanding of framework and library capabilities
    • Focus: Detailed technical documentation

Important Restrictions for AI Assistants

Installation

Framework Structure

Core Components

All core framework components are located in the Gemvc\Core namespace:

Namespace Structure

Application Structure

The framework follows a layered architecture pattern:

Layer Responsibilities

Environment Configuration

The framework uses Symfony's Dotenv component for environment management:

Important Notes

  1. Always use Gemvc\Core\Auth for authentication (not Gemvc\Auth\Auth)
  2. Core components are in the Core namespace
  3. HTTP components are in the Http namespace
  4. Database components are in the Database namespace
  5. When manually setting POST parameters, use array syntax: $request->post['key'] = $value (not setPost() method)
  6. Auth token user ID is accessed via $auth->token->user_id (not $auth->token->id)
  7. For string validation with length constraints, use validateStringPosts() with format: ['field'=>'min|max']
  8. For email validation, use validatePosts() with format: ['email'=>'email']
  9. The Auth class automatically handles invalid tokens by returning a 403 response and stopping execution

Input Validation Best Practices

The framework provides different validation methods for different types of input:

Authentication

Basic Validation

String Length Validation

Validation Flow

  1. Always validate authentication first - Auth class will handle invalid tokens automatically
  2. Validate input before processing
  3. Use appropriate validation method based on input type
  4. Set additional parameters after validation
  5. Pass validated request to controller

Example of a secure endpoint:

Documentation

The complete API documentation for your application is available at:

This documentation is automatically generated from your code's PHPDoc comments and mock responses.

Database Setup

Create the users table with the following structure:

API Documentation Generation

Mock Response System

The GEMVC Framework includes an automatic API documentation generation system using the mockResponse static method. This feature helps maintain accurate and up-to-date API documentation.

How to Implement

  1. Add a static mockResponse method to your API service class:

Response Structure

Your mock responses should follow this structure:

Best Practices

  1. Always include the @hidden annotation to mark the method as internal
  2. Provide realistic example data that matches your actual response structure
  3. Include all possible response variations (success, error cases)
  4. Keep the example data up to date with your actual API responses
  5. Use proper type hints and return type declarations

Example

AI Assistant Support

The GEMVC Framework includes comprehensive AI Assistant rules to ensure consistent and secure development assistance. These rules are defined in GEMVCAIAssistantRules.json and cover:

Key AI Assistant Guidelines

  1. Core Principles

    • Security-first approach
    • Strict type safety (PHPStan level 9)
    • Respect for layered architecture
    • Framework convention adherence
  2. Architecture Understanding

    • Layer-specific responsibilities
    • Proper inheritance requirements
    • Access control between layers
    • Component relationships
  3. Security Enforcement

    • Authentication patterns
    • Input validation methods
    • Parameter handling
    • Token validation
  4. Response Standards
    • Consistent response formats
    • HTTP status code mapping
    • Error handling patterns

AI Assistant Resources

The framework provides several resources to support AI-assisted development:

  1. Framework AI Assist

    • Location: vendor/gemvc/framework/GEMVCFrameworkAIAssist.jsonc
    • Purpose: Framework-specific AI assistance rules
    • Features: Architecture patterns, security rules, best practices
  2. Library AI Assist

    • Location: vendor/gemvc/library/AIAssist.jsonc
    • Purpose: Core library AI assistance rules
    • Features: Component usage, error handling, security patterns
  3. API References
    • Framework: vendor/gemvc/framework/GEMVCFrameworkAPIReference.json
    • Library: vendor/gemvc/library/GEMVCLibraryAPIReference.json
    • Purpose: Detailed API documentation for AI assistance

AI Assistant Best Practices

When working with AI assistants, follow these guidelines:

  1. Code Generation

    • Always verify generated code against framework rules
    • Ensure proper layer separation
    • Validate security implementations
    • Check type safety compliance
  2. Documentation

    • Use PHPDoc comments for all public methods
    • Include mock responses for API endpoints
    • Provide clear examples in comments
    • Follow framework documentation standards
  3. Security
    • Verify authentication implementations
    • Validate input handling
    • Check parameter setting methods
    • Ensure proper error responses

IMPORTANT Resources


All versions of installer with dependencies

PHP Build Version
Package Version
Requires gemvc/framework Version ^5.9
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 gemvc/installer contains the following files

Loading the files please wait ....