Download the PHP package connecttech/auto-render-models without Composer

On this page you can find all versions of the php package connecttech/auto-render-models. 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 auto-render-models

Auto Render Models 🚀

Code chay làm gì cho mệt? Để tool nó gánh còng lưng!

Chào anh em, đây là gói Auto Render Models - trợ thủ đắc lực cho các đồng đạo Laravel. Nó giúp anh em tự động hóa việc tạo Eloquent Model từ database schema. Thay vì ngồi gõ từng dòng fillable, casts, hay khai báo relationship mỏi tay, thì chạy lệnh một phát là xong. Xịn sò chưa? 😎

Tại sao nên dùng? 🤔

Yêu cầu 🛠️

Cài đặt imstall 📦

Chạy lệnh này trong terminal của dự án Laravel nhé:

(Nên để --dev vì thường mình chỉ render model lúc dev thôi, lên production thì code có sẵn rồi)

Cấu hình ⚙️

Sau khi cài xong, anh em cần publish file config ra để tùy chỉnh theo ý thích:

File config sẽ nằm ở config/models.php. Vào đó anh em có thể chỉnh:

Sử dụng Run 🏃‍♂️

Dễ như ăn kẹo. Mở terminal lên và quất:

1. Render toàn bộ database (Mặc định)

Lệnh này sẽ quét connection mặc định và tạo model cho tất cả các bảng.

2. Chỉ định connection hoặc schema cụ thể

3. Render một bảng cụ thể

Chỉ muốn tạo lại model cho bảng users thôi thì làm thế này:

4. Tạo TypeScript Interfaces (New) ⚛️

Dành cho anh em Fullstack (Next.js/React/Vue). Lệnh này sẽ quét database và tạo file .d.ts hoặc .ts chứa interface chuẩn type.

Config output nằm ở config/models.php mục typescript. Rất hữu ích khi làm việc với TypeScript ở Frontend để đảm bảo Type Safety.

5. Sinh PHP Enums từ Database (New) 🎯

Laravel 11+ khuyến khích dùng PHP Enums. Tính năng này sẽ giúp ông tự động sinh các class Enum từ các cột có kiểu ENUM trong database của MySQL, sau đó tự động thêm cast vào model.

Config output nằm ở config/models.php mục enums.

Tính năng nổi bật 🔥

Đóng góp (Contribution) 🤝

Anh em thấy lỗi hay muốn thêm tính năng gì thì cứ tự nhiên:

  1. Fork repo này về.
  2. Tạo branch mới (git checkout -b feature/tinh-nang-xin).
  3. Code và Commit (git commit -m 'Thêm tính năng xịn').
  4. Push lên (git push origin feature/tinh-nang-xin).
  5. Tạo Pull Request.

Đừng ngại, mình rất welcome mọi đóng góp!

License ®️

Dự án này được phát hành dưới giấy phép MIT. Dùng thoải mái đi nhé!


Made with ❤️ by ConnectTech & devcontainerDuy.


All versions of auto-render-models with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/support Version ^10.0|^11.0|^12.0
illuminate/config Version ^10.0|^11.0|^12.0
doctrine/dbal Version ^3.6|^4.0
illuminate/database Version ^10.0|^11.0|^12.0
illuminate/contracts Version ^10.0|^11.0|^12.0
illuminate/filesystem Version ^10.0|^11.0|^12.0
illuminate/console Version ^10.0|^11.0|^12.0
laravel/prompts Version ^0.1|^0.2|^0.3
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 connecttech/auto-render-models contains the following files

Loading the files please wait ...