GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - ArrisFramework/Arris: Arris µ-Framework: Core

BranchesTags
Open more actions menu

Latest commit

 

History

245 Commits
245 Commits

Folders and files

NameName
Last commit message
Last commit date
docs
docs
 
 
functions
functions
 
 
interfaces
interfaces
 
 
sources
sources
 
 
tests
tests
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
README_MIGRATION.md
README_MIGRATION.md
 
 
README_ru.md
README_ru.md
 
 
TODO.md
TODO.md
 
 
_env.example.php
_env.example.php
 
 
composer.json
composer.json
 
 
makefile
makefile
 
 
phpunit.xml
phpunit.xml
 
 

Repository files navigation

Arris µ-Framework

Class collection for some my projects

Sub-packages

The Arris ecosystem is split into separate composer packages; each package is a repository under /var/www.arris/ and ships its own AGENTS.md. Install the ones you need: composer require karelwintersky/<package>.

Core

This package — arris — the framework core itself: App singleton, AppErrorHandler, Hook events, Controllers\AbstractController, global helpers, Core\Dot, PSR-16 compatible cache.

Companion core packages:

  • arris.config — config reader/writer, AppConfig. composer require karelwintersky/arris.config
  • arris.entity — entity types for the framework. composer require karelwintersky/arris.entity
  • arris.entity.path — path builder. composer require karelwintersky/arris.entity.path
  • arris.entity.url — URL builder. composer require karelwintersky/arris.entity.url
  • arris.logger — application logger. composer require karelwintersky/arris.logger
  • arris.router — application router. composer require karelwintersky/arris.router
  • arris.cache — cache engine. composer require karelwintersky/arris.cache
  • arris.catcher — exception catcher: error dump with call hierarchy or a safe stub. composer require karelwintersky/arris.catcher
  • arris.presenter — presenter with lazy Smarty wrapper. composer require karelwintersky/arris.presenter

Toolkits

  • arris.toolkit.cli-console — CLI console helper. composer require karelwintersky/arris.toolkit.cli-console
  • arris.toolkit.firewall — IP filtering. composer require karelwintersky/arris.toolkit.firewall
  • arris.toolkit.mimetypes — MimeType ↔ extension resolver. composer require karelwintersky/arris.toolkit.mimetypes
  • arris.toolkit.nanoredis — minimal Redis client. composer require karelwintersky/arris.toolkit.nanoredis
  • arris.php-file-download — file download helper. composer require karelwintersky/arris.php-file-download
  • arris.php-file-upload — file upload with validation and conversion. composer require karelwintersky/arris.php-file-upload
// Добавление в конфиг
App::factory()->addConfig([
    'smarty'    =>  [
        'path_template' =>  self::$path_install->join('templates'),
        'path_cache'    =>  self::$path_install->join('cache')
    ]
]);

Global helpers config() / app()

Helpers config() and app() are not hard-bound to Arris\App — they use the application class registered in the framework. This matters when your project has its own app class extending Arris\App (e.g. App\App): without registration the helpers would build a fresh Arris\App instance instead of touching yours.

Register your class once at bootstrap, before any helper call:

use Arris\App;
use App\App as MyApp;

MyApp::setApplicationClass(MyApp::class);
// ... или как зарегистрированный инстанс-класс
App::setApplicationClass(MyApp::class);

config('database.host');  // теперь читает конфиг MyApp-инстанса
app();                    // возвращает MyApp-инстанс (соблюдение singleton)

The given class must extend Arris\App, otherwise RuntimeException is thrown. If nothing was registered (setApplicationClass() was not called) the helpers fall back to Arris\App.

About

Arris µ-Framework: Core

packagist.org/packages/karelwintersky/arris

Resources

Readme
Activity
Custom properties

Stars

1 star

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.