PHPackages                             ajibadedapo/laravel-tinymce-simple-imageupload - 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. [Image &amp; Media](/categories/media)
4. /
5. ajibadedapo/laravel-tinymce-simple-imageupload

ActiveLibrary[Image &amp; Media](/categories/media)

ajibadedapo/laravel-tinymce-simple-imageupload
==============================================

Simple image upload for TinyMCE in Laravel.

1.1.0(9y ago)112MITPHPPHP ~5.5|~7.0

Since Aug 26Pushed 8y ago1 watchersCompare

[ Source](https://github.com/ajibadedapo/laravel-tinymce-simple-imageupload)[ Packagist](https://packagist.org/packages/ajibadedapo/laravel-tinymce-simple-imageupload)[ Docs](https://github.com/petehouston/laravel-tinymce-simple-imageupload)[ RSS](/packages/ajibadedapo-laravel-tinymce-simple-imageupload/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (1)Versions (6)Used By (0)

laravel-tinymce-simple-imageupload
==================================

[](#laravel-tinymce-simple-imageupload)

The simple image upload for TinyMCE in Laravel.

Why made this?
--------------

[](#why-made-this)

Because, I use TinyMCE and basically, it is pretty hard to understand how to upload images directly to the editor while editing content. There are many TinyMCE image uploaders out there, but they are too complicated in functions, and I only need one core use-case, **pick up an image to upload**.

That's it, so I create this package for my projects to re-use. Well, if you want, you can use this too.

**This package works with Laravel 5.0+.**

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

[](#installation)

```
$ composer require "petehouston/laravel-tinymce-simple-imageupload"

```

You need to register into the `config/app.php`,

```
    'providers' => [
        ...

        Petehouston\Tinymce\TinymceServiceProvider::class,

    ]

```

Usage
-----

[](#usage)

In the view that contain setup for TinyMCE, you need to include the upload view, add this line at the bottom,

```
@include('mceImageUpload::upload_form')

```

Don't worry, this form is hidden from your view, no-one will see it because it is `display: none`.

Next step is to add this config to the `tinymce` object,

```
    tinymce.init({
        // .. your config here
        relative_urls: false,
        file_browser_callback: function(field_name, url, type, win) {
            // trigger file upload form
            if (type == 'image') $('#formUpload input').click();
        }
    });

```

That's all, now you should be able to upload image directly to the editor while writing content.

**You can publish view in case you need to customize in `resources/views` directory**

```
$ php artisan vendor:publish --provider=Petehouston\Tinymce\TinymceServiceProvider

```

### Try example

[](#try-example)

There is a setup example in the package, you can try in your project by adding a sample route,

```
Route::get('/tinymce_example', function () {
    return view('mceImageUpload::example');
});

```

### Some notes

[](#some-notes)

**The image upload handler**

I setup already a controller [`Petehouston\Tinymce\TinymceController`](https://github.com/petehouston/laravel-tinymce-simple-imageupload/blob/master/src/TinymceController.php) which implements a method for image uploading.

As you can see it will store all uploaded images in `public/img` directory, the name is like a concatenated hash,

```
$filename = 'image_'.time().'_'.$image->hashName();

```

The default route for handling image upload is `/tinymce/simple-image-upload`.

**Customize upload url and controller**

If you don't want to pre-config of the package, make yours.

While including the uploading form, pass in the url of handling post image upload

```
@include('mceImageUpload::upload_form', ['upload_url' => 'YOUR_URL_FOR_HANDLING_IMAGE_UPLOAD'])

```

Add a method for handling image upload that **should return the same result** as in [`Petehouston\Tinymce\TinymceController`](https://github.com/petehouston/laravel-tinymce-simple-imageupload/blob/master/src/TinymceController.php).

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 75% 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

Every ~17 days

Total

5

Last Release

3481d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b532c2b7d48edbf0a011752e509c9a279ade247090c104915010b5c66e3b0043?d=identicon)[ajibadedapo](/maintainers/ajibadedapo)

---

Top Contributors

[![petehouston](https://avatars.githubusercontent.com/u/9006720?v=4)](https://github.com/petehouston "petehouston (9 commits)")[![ajibadedapo](https://avatars.githubusercontent.com/u/10978492?v=4)](https://github.com/ajibadedapo "ajibadedapo (3 commits)")

---

Tags

phplaravellaravel 5tinymceImage upload

### Embed Badge

![Health badge](/badges/ajibadedapo-laravel-tinymce-simple-imageupload/health.svg)

```
[![Health](https://phpackages.com/badges/ajibadedapo-laravel-tinymce-simple-imageupload/health.svg)](https://phpackages.com/packages/ajibadedapo-laravel-tinymce-simple-imageupload)
```

###  Alternatives

[petehouston/laravel-tinymce-simple-imageupload

Simple image upload for TinyMCE in Laravel.

6850.2k](/packages/petehouston-laravel-tinymce-simple-imageupload)[bkwld/croppa

Image thumbnail creation through specially formatted URLs for Laravel

510496.0k23](/packages/bkwld-croppa)[tomatophp/filament-media-manager

Manage your media files using spatie media library with easy to use GUI for FilamentPHP

14543.9k3](/packages/tomatophp-filament-media-manager)[nikkanetiya/laravel-color-palette

Laravel Wrapper for `ksubileau/color-thief-php`. Grabs the dominant color or a representative color palette from an image. Uses PHP and GD or Imagick.

3312.6k](/packages/nikkanetiya-laravel-color-palette)[bjthecod3r/laravel-cloudflare-stream

A Laravel package for Cloudflare Stream.

203.4k](/packages/bjthecod3r-laravel-cloudflare-stream)

PHPackages © 2026

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