Download the PHP package babasultan23/dynamic-datatable without Composer

On this page you can find all versions of the php package babasultan23/dynamic-datatable. 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 dynamic-datatable

Dynamic DataTable Package for Laravel

Bu paket, Laravel projelerinde DataTables kullanımını kolaylaştırmak için geliştirilmiş bir pakettir. Özellikle karmaşık sorgular, özelleştirilmiş sıralama ve arama işlemleri için kullanışlı bir API sunar.

Gereksinimler

Kurulum

  1. Composer ile paketi yükleyin:

  2. Service Provider ve Facade otomatik olarak yüklenir. Manuel eklemek isterseniz config/app.php dosyasına ekleyin:

  3. Konfigürasyon dosyasını publish edin:

Kullanım

Temel Kullanım

Controller:

Blade View:

Detaylı Fonksiyon Kullanımları

1. setOrderMapping()

Özel sıralama tanımlamaları için kullanılır. Özellikle birleştirilmiş alanlar veya ilişkili tablolardaki alanlar için kullanışlıdır.
Özellikle orjinal model tablosunun içinde bulunmayan, sonradan addColumn ile eklenen değerler için kullanılır.

2. setSearchMapping()

Arama yapılacak alanları ve nasıl aranacaklarını tanımlar. Bu kısıma dahil edilmeyen kolonlar aramaya dahil edilmez.
Aranmasını istenilen kısımlar eklenmek zorunda!!

3. setActionButtons()

Her satır için aksiyon butonlarını tanımlar. Silme Güncelleme Onaylama vb. ön taraf ile dinamik çalışan butonlar için kullanılır.

4. setFormatResponse()

DataTable yanıtını özelleştirmek için kullanılır.
->with([ ile başlayan kod bloğuna karışmayınız, kullanılmak zorunda.

5. render()

DataTable'ı oluşturur ve görüntüler. İlgili blade dosyasına değişken olarak gönderilir.

Child-Parent Tablosunu Ayarlama

Eğer ilişkili bir parent-child yapısı var ise aşağıdaki adımları takip etmelisiniz:

  1. DataTable oluştururken:

    • plusButton: true ve plusParentIdKey: 'request_param' değeri fetch fonksiyonunda request ile yakalayacağınız değer olarak tanımlanmalıdır (örn: $request->request_param)
  2. Columns dizisine plus butonu için sütun eklemelisiniz:

  3. setFormatResponse kısmına plus butonu eklenmelidir:

    Not: Bu buton ve column kısmını direkt olarak kullanmanız önerilir.

  4. Request'ten gelen değişkene göre:
    (plusParentIdKey: 'request_param' yani $request->request_param) sorguya göre child sorgunuzu fetch içerisinde tanımlayıp tabloya geri döndürmelisiniz:

Fetch Metodu Örneği

Model sorgusu sadece query builder olarak, Model::query() şeklinde kullanılmalıdır

Method Chaining

Tüm ayar metodları zincirleme kullanılabilir:

Chaning Örnek

Özelleştirme

1. View Özelleştirme

View dosyasını publish ederek tabloyu özelleştirebilirsiniz:

2. Konfigürasyon

Publish edilen config dosyasından varsayılan ayarları değiştirebilirsiniz:

3. Ajax Js

Publish edilen ajax js dosyasından varsayılan ayarları değiştirebilirsiniz:

Özel Filtreli Kullanım Örneği:

Dinamik Ajax Crud Kullanımı

Örnek Kullanım

Lisans

MIT License. Detaylar için LICENSE dosyasına bakın.


All versions of dynamic-datatable with dependencies

PHP Build Version
Package Version
Requires php Version ^7.3|^8.0
laravel/framework Version ^8.0|^9.0|^10.0
yajra/laravel-datatables-oracle Version *
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 babasultan23/dynamic-datatable contains the following files

Loading the files please wait ....