composer

  1. Sim

    Beta Static analysis for XenForo addons with PHPStan

    A tutorial on how to use static analysis to find bugs or potential problems with your addon code - and how to set up hampel/xenforo-phpstan, an open-source composer package that helps a developer analyse XenForo addons. By the end you should have a clean run at level 2 on an add-on of your own...
  2. Sim

    bump psr/log to v2 or v3

    XenForo v2.3.x ships with the psr/log package at v1.1.4 Most consumers tend to require "psr/log": "^1|^2|^3" I would like to implement Monolog v3 for my Monolog addon, but that requires v2 or v3 and so isn't compatible with XF 2.3 Can I request that you look at the dependencies for v2.4 (or...
  3. Sim

    Unit testing XenForo addons - tutorial

    Compatibility Install the newest version your XenForo and PHP allow. v5.x — XenForo 2.3, PHP 8.3+. The current line: PHPUnit 10, 11 or 12 v4.x — XenForo 2.3, PHP 8.3+. Fixes only v3.x — XenForo 2.3, PHP 8.1 or 8.2 v2.x — XenForo 2.2 v1.x — XenForo 2.1 Upgrading Upgrade notes are on GitHub...
  4. Sim

    Using Composer Packages in XenForo 2.0 Addons Tutorial 1.0.0

    Composer is a tool for dependency management in PHP. It allows you to declare the libraries your project depends on and it will manage (install/update) them for you. XenForo 2.0 uses Composer behind the scenes to include certain packages it uses - however, there is no way to automatically...
Back
Top Bottom