PHPackages                             itx-technologies/artisan-resx-to-lang - 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. [Localization &amp; i18n](/categories/localization)
4. /
5. itx-technologies/artisan-resx-to-lang

ActiveLibrary[Localization &amp; i18n](/categories/localization)

itx-technologies/artisan-resx-to-lang
=====================================

141PHP

Since Feb 12Pushed 11y ago6 watchersCompare

[ Source](https://github.com/iTxTechnologies/Laravel-Resx-Converter)[ Packagist](https://packagist.org/packages/itx-technologies/artisan-resx-to-lang)[ RSS](/packages/itx-technologies-artisan-resx-to-lang/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel-Resx-Converter
======================

[](#laravel-resx-converter)

Convert your .NET resource files to Laravel language files

Instalation
-----------

[](#instalation)

The first step is to install the package through `Composer`, for that require `"itx-technologies/artisan-resx-to-lang"` in your `composer.json` file

```
  "require-dev": {
    "itx-technologies/artisan-resx-to-lang": "~2.0"
  }

```

Then update composer from the command line

```
	composer update --dev

```

And finally add the following to the `providers` array of the `/app/config/app.php` file

```
	'ItxTechnologies\ArtisanResxToLang\ArtisanResxToLangServiceProvider',

```

You can then call `php artisan` to see the installed resxToLang command

Usage
-----

[](#usage)

First of all, make sure that the folders for every language you are trying to convert are present in your `/app/lang` directory. Then, make sure that the base language, the one in the flat \[name\].resx files, is set as your fallback locale in `/app/config/app.php`. Finally, transfer your .resx files in a folder called `resx` in your `public` folder. When that is done, simply call the command from the command line:

```
	php artisan resxToLang [filename]

```

When entering the filename, don't add the `.resx`.

The command will do it's magic, once it's finished, you can open your `app/lang/[locale]` folder and see a file named `[filename].php` that includes every string from your original resx file. In the other locale folders, you will see the same php file containing the same strings in that language.

Translating locale lines from C# to Laravel
-------------------------------------------

[](#translating-locale-lines-from-c-to-laravel)

if you used the razor templating engine in your original C# project, the translation is really fast. A line that looked like this:

```
	@Resources.File.String

```

becomes:

```
	@lang('file.String')

```

in a blade file or:

```
	echo Lang::get('file.String');

```

in a php block.

Please note that the file names are all lowercased during the conversion but not the string name

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/9a2c5202c1bc4740625f123a4e690828a1f15f837a03dc0ba4b1b22b42a0bc10?d=identicon)[itxtechnologies](/maintainers/itxtechnologies)

### Embed Badge

![Health badge](/badges/itx-technologies-artisan-resx-to-lang/health.svg)

```
[![Health](https://phpackages.com/badges/itx-technologies-artisan-resx-to-lang/health.svg)](https://phpackages.com/packages/itx-technologies-artisan-resx-to-lang)
```

###  Alternatives

[symfony/translation

Provides tools to internationalize your application

6.6k836.5M2.1k](/packages/symfony-translation)[nesbot/carbon

An API extension for DateTime that supports 281 different languages.

169661.4M4.8k](/packages/nesbot-carbon)[joedixon/laravel-translation

A tool for managing all of your Laravel translations

717911.4k11](/packages/joedixon-laravel-translation)[illuminate/translation

The Illuminate Translation package.

6936.4M495](/packages/illuminate-translation)[lajax/yii2-translate-manager

Translation management extension for Yii 2

227578.8k13](/packages/lajax-yii2-translate-manager)[larswiegers/laravel-translations-checker

Make sure your laravel translations are checked and are included in all languages.

256423.2k2](/packages/larswiegers-laravel-translations-checker)

PHPackages © 2026

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