Download the PHP package erdikoroglu/laravel-service-scaffold without Composer

On this page you can find all versions of the php package erdikoroglu/laravel-service-scaffold. 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-service-scaffold

Laravel Service Scaffold

Latest Version on Packagist Total Downloads

Laravel projelerinizde hızlı bir şekilde tam bir servis katmanı (Service Layer) oluşturmanızı sağlayan interaktif bir Artisan komutu. Bu paket, Repository Pattern'ını temel alarak Model, Migration, Factory, Interface, Repository, Service sınıfı ve çeşitli Form Request'ler (Store, Update, Delete, Search, Show, Restore, Toggle) otomatik olarak üretir. Ayrıca, AppServiceProvider'a binding ekleyerek dependency injection'ı kolaylaştırır.

Bu araç, veritabanı tablosu tasarımı sırasında interaktif prompt'lar ile sütun eklemenize izin verir. SoftDeletes desteği opsiyonel olarak eklenir ve model'in fillable alanları otomatik güncellenir.

Özellikler

Kurulum

  1. Composer ile paketi yükleyin:

  2. Laravel 10+ sürümlerinde paket otomatik olarak service provider'ı keşfedilir (auto-discovery). Eğer manuel kayıt gerekiyorsa (eski sürümlerde), config/app.php'ye ekleyin:

  3. Komut artık Artisan menüsünde görünür: php artisan make:service.

Kullanım

Komutu şu şekilde çalıştırın:

Adım Adım Süreç

Komut çalıştırıldığında interaktif bir wizard başlar:

  1. Model Oluşturma: Model, Factory ve Migration otomatik oluşturulur.

    • Örnek çıktı:
  2. Sütun Tanımlama:

    • Sütun adı: Sütun adını girin (boş bırakırsanız çıkış).

    • Sütun tipi: Listeden seçin (0-16 arası numaralar): Seçenek Tip Açıklama
      0 id Otomatik artan primary key
      1 uuid UUID primary key
      2 string VARCHAR (varsayılan)
      3 text TEXT
      4 longText LONGTEXT
      5 integer INTEGER
      6 bigInteger BIGINT
      7 tinyInteger TINYINT
      8 boolean BOOLEAN
      9 decimal DECIMAL
      10 float FLOAT
      11 double DOUBLE
      12 date DATE
      13 datetime DATETIME
      14 timestamp TIMESTAMP
      15 json JSON
      16 foreignId Foreign ID (unsignedBigInteger)

      Örnek:

    • Uzunluk: Varsayılan 255 (string için), Enter ile atlayın.

    • Nullable?: yes/no (varsayılan: no).
    • Unique?: yes/no (varsayılan: no).
    • Varsayılan Değer?: yes/no (varsayılan: no). Eğer yes ise değer girin.
    • Başka Sütun?: yes/no (varsayılan: yes). No ile sütun eklemeyi bitirin.
  3. SoftDeletes: deleted_at sütunu ve trait eklemek için yes/no (varsayılan: yes).

  4. Sonuç: Migration güncellenir, model'e fillable ve SoftDeletes trait eklenir, Interface/Repository/Service oluşturulur, Request'ler üretilir ve AppServiceProvider'a binding eklenir.
    • Örnek çıktı:

Örnek Migration Üretimi

Bir title (string, 255) sütunu eklediğinizde migration şöyle olur:

Örnek Service Kullanımı

Oluşturulan TestService şöyle kullanılabilir (Controller'da):

Service içinde Repository çağrıları yapılır:

Konfigürasyon

Şu an için ekstra konfigürasyon gerekmez. Gelecek sürümlerde migration şablonları veya dil dosyaları için publish edilebilir dosyalar eklenebilir.

Katkı Sağlama

  1. Fork'layın.
  2. Değişiklikleri geliştirin (develop branch'inde).
  3. Test edin (php artisan test).
  4. Pull Request gönderin.

Pull Request'ler için develop branch'ini hedefleyin. Kod kalitesi için PHP CS Fixer ve PHPUnit kullanın.

Lisans

MIT Lisansı. Detaylar için LICENSE dosyasını inceleyin.

İletişim

Sorunlarınızı GitHub Issues üzerinden bildirin. Teşekkürler! 🚀


All versions of laravel-service-scaffold with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
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 erdikoroglu/laravel-service-scaffold contains the following files

Loading the files please wait ...