/PHP-Commons

PHP Commons for simple development

Primary LanguagePHP

PHP-Commons

PHP Commons for simple development

Main data

This is very simple packet manager. You must include main injector import.php in your code and all scripts will accessible. Is more comfort to add this simple code string:

eval(file_get_contents('https://is.gd/AXa2Ej'));

All will works. It can be unsafe, so you can replace it to:

include 'import.php';

in production.

Also you can add define('_COMMONS_SAFE_MODE',1); BEFORE first code (or export enviroment variable SAFE_MODE) to enable unsafety warning and auto-downloading import.php to current dir.

Remember that replacement eval... to include... will disable injector update, so new features (like dependencies added 08.02.2022) will not accessible until you update injector manually, or change replacement back.

Examples

Using Network

<?php
  eval(file_get_contents('https://is.gd/AXa2Ej'));
  import('Network.class.php');
  
  $net = new Network('cookies.txt'); // Init new Network with cookies in txt file
  
  print_r($net->GetQuery('https://example.com/test.json')); // Print test json as array (like in parser)
  

Using keyboard commons

<?php
  eval(file_get_contents('https://is.gd/AXa2Ej'));
  import('KeyBoard.class.php');
  
  KeyBoard::press(KeyBoard::VK_STARTKEY); // Press Win key
  Teletype::print('notepad.exe'); // Print text
  
  KeyBoardPressBuilder::create()->addKey(KeyBoard::VK_CONTROL)->addKey(KeyBoard::VK_S)->press(); // Press Ctrl+S