PHPackages                             kocal/oxc-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. kocal/oxc-bundle

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

kocal/oxc-bundle
================

A Symfony Bundle to easily download tools from the JavaScript Oxidation Compiler (Oxc).

v1.0.0(5mo ago)42431[1 issues](https://github.com/Kocal/OxcBundle/issues)[1 PRs](https://github.com/Kocal/OxcBundle/pulls)1MITPHPPHP &gt;=8.1CI failing

Since Feb 4Pushed 5mo agoCompare

[ Source](https://github.com/Kocal/OxcBundle)[ Packagist](https://packagist.org/packages/kocal/oxc-bundle)[ RSS](/packages/kocal-oxc-bundle/feed)WikiDiscussions main Synced today

READMEChangelog (1)Dependencies (7)Versions (2)Used By (1)

OxcBundle
=========

[](#oxcbundle)

[![.github/workflows/ci.yaml](https://github.com/Kocal/OxcBundle/actions/workflows/ci.yaml/badge.svg)](https://github.com/Kocal/OxcBundle/actions/workflows/ci.yaml)[![Packagist Version](https://camo.githubusercontent.com/042182e864a705abba08488b8b7620b81d9dd57494a9c25fe510fd05f4447a60/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6b6f63616c2f6f78632d62756e646c65)](https://packagist.org/packages/kocal/oxc-bundle)

A Symfony Bundle to easily download and use [Oxlint](https://oxc.rs/docs/guide/usage/linter.html) and [Oxfmt](https://oxc.rs/docs/guide/usage/formatter.html)(from the [Oxc project](https://oxc.rs/)) in your Symfony applications, to lint your front assets without needing Node.js (ex: when using [Symfony AssetMapper](https://symfony.com/doc/current/frontend/asset_mapper.html)).

Tip

If you prefer to use Biome.js instead, check [Kocal/BiomeJsBundle](https://github.com/Kocal/BiomeJsBundle)!

---

Installation
------------

[](#installation)

Install the bundle with Composer:

```
composer require kocal/oxc-bundle --dev
```

If you use [Symfony Flex](https://symfony.com/doc/current/setup/flex.html), everything must be configured automatically. If that's not the case, please follow the next steps:

Manual installation steps1. Register the bundle in your `config/bundles.php` file:

```
return [
    // ...
    Kocal\OxcBundle\KocalOxcBundle::class => ['dev' => true],
];
```

2. Create the configuration file `config/packages/kocal_oxc.yaml`:

```
when@dev:
    kocal_oxc:
        # The Oxc apps version to use, that you can find at https://github.com/oxc-project/oxc/tags,
        # it follows the pattern "apps_v"
        apps_version: '1.43.0'
```

3. Create the recommended `.oxlintrc.json` file at the root of your project:

```
{
    "plugins": null,
    "categories": {},
    "rules": {},
    "env": {
        "builtin": true
    },
    "globals": {},
    "ignorePatterns": [
        "assets/vendor/**",
        "assets/controllers.json",
        "public/assets/**",
        "public/bundles/**",
        "tests/**",
        "var/**",
        "vendor/**",
        "composer.json",
        "package.json"
    ]
}
```

4. Create the recommended `.oxfmtrc.json` file at the root of your project:

```
{
    "ignorePatterns": [
        "assets/vendor/**",
        "assets/controllers.json",
        "public/assets/**",
        "public/bundles/**",
        "tests/**",
        "var/**",
        "vendor/**",
        "composer.json",
        "package.json"
    ]
}
```

Configuration
-------------

[](#configuration)

The bundle is configured in the `config/packages/kocal_oxc.yaml` file:

```
when@dev:
    kocal_oxc:
        # The Oxc apps version to use, that you can find at https://github.com/oxc-project/oxc/tags,
        # it follows the pattern "apps_v"
        apps_version: '1.43.0'
```

Usage
-----

[](#usage)

### `oxc:download:oxlint`

[](#oxcdownloadoxlint)

Download Oxlint for your configured version and for your platform.

By default, the command will download the binary in the `bin/` directory of your project.

```
php bin/console oxc:download:oxlint
bin/oxlint --version

# or, with a custom destination directory
php bin/console oxc:download:oxlint path/to/bin
path/to/bin/oxlint --version
```

### `oxc:download:oxfmt`

[](#oxcdownloadoxfmt)

Download Oxfmt for your configured version and for your platform.

By default, the command will download the binary in the `bin/` directory of your project.

```
php bin/console oxc:download:oxfmt
bin/oxfmt --version

# or, with a custom destination directory
php bin/console oxc:download:oxfmt path/to/bin
path/to/bin/oxfmt --version
```

Inspirations
------------

[](#inspirations)

-
-

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance68

Regular maintenance activity

Popularity19

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

150d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2103975?v=4)[Hugo Alliaume](/maintainers/Kocal)[@Kocal](https://github.com/Kocal)

---

Top Contributors

[![Kocal](https://avatars.githubusercontent.com/u/2103975?v=4)](https://github.com/Kocal "Kocal (2 commits)")

---

Tags

symfonybundleformatlintoxlintoxcoxfmt

###  Code Quality

Static AnalysisPHPStan

Code StyleECS

Type Coverage Yes

### Embed Badge

![Health badge](/badges/kocal-oxc-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/kocal-oxc-bundle/health.svg)](https://phpackages.com/packages/kocal-oxc-bundle)
```

###  Alternatives

[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.4M203](/packages/sulu-sulu)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M572](/packages/shopware-core)[jolicode/castor

A lightweight and modern task runner. Automate everything. In PHP.

54743.1k4](/packages/jolicode-castor)[chameleon-system/chameleon-base

The Chameleon System core.

1028.6k5](/packages/chameleon-system-chameleon-base)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
