Torch

Examples of using each Illuminate component in non-Laravel applications

  • 所有者: mattstauffer/Torch
  • 平台:
  • 许可证: MIT License
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

Torch logo

Torch - Using Laravel's Illuminate Components Independently

Torch is a project to provide instructions and examples for using Illuminate components as standalone components in non-Laravel applications. The current master branch shows how to use Illuminate's 6.0 components.

Note: If you are working with an older project, you might have more success using the 5.5 components or the 5.1 components or the 4.2 components.

Usage

At the moment, the project is divided into many directories beneath components which will each contain an index file, usually written with Slim. Navigate to that directory in your terminal and run the following to serve a web site from that directory:

$ composer install
$ php -S localhost:8000

Now you can visit http://localhost:8000/ in your browser to view the output of each.

Packages

Ready for 6.0

Need to be moved over from 4.2

  • Mail - Imported from 4.2 but needs to be tested/tweaked

Other Packages

Done

Contributing

A few important notes:

  1. The imagined end user is a developer of any Symfony-HttpFoundation-using project copying the route closure directly into a project, so try to avoid using any Slim conventions and use as little preparation code outside the closure as possible.
  2. While some components would be easier to implement with a Laravel-style Application instance and a fuller bootstrap, I'd prefer we implement as many as possible without loading Laravel's Service Providers.
  3. Some components will require a bootstrap, and I hope we can come up with a Best-Practice bootstrap and Laravel-style Application instance for loading Service Providers, etc.

Contributing

The 4.2 and 5.1 and 5.5 branches are still going strong, but this 6.0 branch is brand-new. I would appreciate any and all contributions.

At this point, most contributions could be just copying the 5.5 or 4.1 component over, adding composer.json if it doesn't exist (4.1), tweaking the old code for the new folder structure, and making sure our old code still works.

But my framework doesn't use Symfony's HttpFoundation!

Many of these components will still work. But a few of them require HttpFoundation. ¯\(°_o)/¯

主要指标

概览
名称与所有者mattstauffer/Torch
主编程语言PHP
编程语言PHP (语言数: 3)
平台
许可证MIT License
所有者活动
创建于2014-08-21 21:10:43
推送于2024-01-27 18:07:28
最后一次提交2023-01-20 00:05:37
发布数0
用户参与
星数1.9k
关注者数69
派生数214
提交数533
已启用问题?
问题数86
打开的问题数10
拉请求数92
打开的拉请求数4
关闭的拉请求数17
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?