Git Product home page Git Product logo

torch's Introduction

Torch LogoTorch - 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 5.5 components.

Note: If you are working with an older project, you might have more success using 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 5.5

Need to be moved over from 5.1

Need to be moved over from 4.2

  • Mail - Imported from 4.2 but needs to be tested/tweaked
  • Queue - 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 branches are still going strong, but this 5.5 branch is brand-new. I would appreciate any and all contributions.

At this point, most contributions could be just copying the 5.1 or 4.2 component over, adding composer.json if it doesn't exist (4.2), 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)/¯

torch's People

Contributors

mattstauffer avatar jamescarlos avatar rubemlrm avatar tunr avatar hskrasek avatar dead23angel avatar angelov avatar spamoom avatar robinmalfait avatar silentworks avatar akenroberts avatar dv336699 avatar jwalton512 avatar jonahgeorge avatar reinink avatar jordonbrill avatar maxbublik avatar carousel avatar whyounes avatar stephanebour avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.