Download the PHP package winkelco/laravel-extension without Composer

On this page you can find all versions of the php package winkelco/laravel-extension. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-extension

Laravel Extension

Plugin, Extension and Module System For Laravel. Inspirate from Wordpress Plugins.

screenshot preview

Table of contents

Installing

Install from composer :

We make this package with Auto Discovery, but you can add manual :

Publish Config :

Added Namespace To Your Composer : (edit your laravel composer.json)

And then, you can generate composer autoload :

For first time after installing, you must run this command for generate extension folder in app\Extension :

Extension Management Page

For a simple Extension management page, added this route to your rourtes routes/web.php :

Save, and then access in your browser http://mylaravelproject.test/extension or 'localhost:8000/extension`, and finaly, you see this page : screenshot extension management page

Extension Folder Structure

By Default, Extension path in app/Extension, you can create Extension in this folder.

Artisan Console Command Support

Make new extension easy :

Update list installed extension :

Get list installed extension :

Enable a extension : (plugin must be added in list first)

Disable a extension :

Inspect a Extension

Get Hook list (all)

Get Hook list specific type (action or filter)

Create New Extension

with Artisan Command

you can create new extension with this command :

after success, you can refresh extension list with :

and you can check if updating list success :

for enable your extension, use :

Manual

| note : this use indonesian language, you can translate this.

Lokasi extension harus ada pada folder utama extension, secara default ada pada app\Extension. berikut panduan singkat cara pembuatan extension :

anda bisa menambahkanya otomatis di file config app\Extension\extension.json, jika anda menjalankan perintah diatas, perintah tersebut akan otomatis mengupdate daftar extension anda yang ada di app\Extension\extension.json, seharusnya menjadi seperti berikut nantinya file app\Extension\extension.json :

Hook

Action

with Hook Action, you can make multi-action system and management action.
Make Action :

Run Action :

For Example, you can make action hook name "save_post", and this action can make many action callback

And You Can Run :

Filter

Filter make data can modification by multiple closure, this a helpfull for make Extension. Make Filter :

Apply Action :

For example, i make 2 function for modification a data $title :

Menu Builder

This package include a simple menu builder, for make dynamic menu in your project,
this is a example :

And then, for render to string html, use this. For example i am make sidebar.blade.php :

Unit Test

You can running test with phpunit with this command :

or : (installed phpunit via composer)

Examples

Making Dynamic css and javascript in html blade

For example, a make a page with dynamic component with Hook filter. In layouts/app.blade.php :

And in controlle :

And then, final result html is :

License

The MIT License (MIT). Please see License File for more information.


All versions of laravel-extension with dependencies

PHP Build Version
Package Version
Requires illuminate/support Version ^7|^8|^9
php Version ^7.0|^8.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package winkelco/laravel-extension contains the following files

Loading the files please wait ....