PHP Package: spatie/laravel-translatable

Spatie's Laravel Translatable library simplifies multilingual content management in Laravel applications with seamless translation handling.

Current Version: 6.11.4
Last Updated: 2025-02-20
PHP Requirement: ^8.0
Dependencies:
illuminate/support
doctrine/inflector
⚠️ To ensure full functionality, the above dependencies might be required.

Package Description

Laravel Translatable by Spatie is a powerful package designed to streamline translation management for Laravel projects. It allows developers to efficiently handle multilingual content, ensuring a seamless user experience across different languages. With features like automatic translation attributes, easy integration, and robust support, this library empowers developers to create dynamic, globally accessible applications.

📦 Show all available classes🔗 View on GitHub

Download Latest Version: 6.11.4

Download Download v6.11.4

Code Integration Example

Make sure to include the correct namespace and class paths for proper usage.

<?php
// Example from PHPlibraries.com
require_once 'libs/spatie/laravel-translatable/6.11.4/loader.php';
require_once 'libs/illuminate/support/12.33.0/loader.php';
require_once 'libs/doctrine/inflector/2.1.0/loader.php';

use Spatie\Translatable\Translatable;
use Illuminate\Support\ServiceProvider;

$obj = new Translatable();
echo '✅ Test OK: ' . get_class($obj);
?>

We aim to make using PHP packages easier without Composer. If something doesn't work, let us know — we'll fix it promptly.

Community Discussion

Ask questions, share tips, or report issues below.