Code Monkey home page Code Monkey logo

koselig's Introduction

Build Status Total Downloads Latest Stable Version

Documentation

What is this?

This is your standard Laravel install but with a few little extras ๐Ÿ˜‰. Koselig is your gateway to Wordpress from Laravel. When a user makes a request, Koselig will boot Wordpress and attempt to match the page Wordpress thinks its on with a Laravel route you define (Koselig provides route methods such as Template, Page Type, Post ID, etc). From that point on, you're in Laravel world but with full access to Wordpress and all the functions that Wordpress exposes.

But we know that's not good enough; Wordpress' API is straight up ugly and doesn't know which paradigm it's following. Koselig attempts to abstract Wordpress away from you, the developer, by providing a beautiful interface to call into Wordpress code. An auth guard has been defined for Wordpress, Eloquent models for Wordpress have been setup and we have proxies for everything that doesn't make sense to rewrite to make them PSR2 compliant.

If you've never used Laravel before you should definitely read over their docs, it'll make your life as a PHP developer so much better. While we're on the topic of docs, here's ours (they're not as good as Laravel's though sorry โ˜น๏ธ)

The Wordpress dashboard is available at /cms. There will be a full Wordpress install in your environment but it's managed via composer along with all your Wordpress plugins.

Security Vulnerabilities

If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell via [email protected].

If you discover a security vulnerability within Koselig, please send an e-mail to Jordan Doyle via [email protected].

If you discover a security vulnerability within Wordpress, please report it on Hackerone.

All security vulnerabilities will be promptly addressed.

License

The Laravel framework is open-sourced software licensed under the MIT license.

Koselig is licensed under the WTFPL.

koselig's People

Contributors

barryvdh avatar bencorlett avatar codler avatar crynobone avatar cviebrock avatar daylerees avatar driesvints avatar ericlbarnes avatar franzliedke avatar grahamcampbell avatar huguesjoyal avatar jakobud avatar jasonlewis avatar jeffreyway avatar jesseobrien avatar josephsilber avatar kapv89 avatar kbanman avatar lancepioch avatar laurencei avatar mathewhany avatar mikelbring avatar neoascetic avatar pedroborges avatar sparksp avatar taylorotwell avatar themsaid avatar tillkruss avatar tobsn avatar w4 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

koselig's Issues

Make it easier to get Koselig running outside of this isolated environment

Right now you pretty much have to use this "base" repository to get Koselig running, while it is possible to get Koselig running in an existing Laravel install (using this diff), the process could be much easier.

  • Move all wp-config.php etc to koselig/library's published assets.
  • Move Koselig/Wordpress-related config values to published config
  • Figure out how we can do some of the hacked-in code from the diff above in the service provider
  • Figure out how we're going to distribute Wordpress
    • we can leave this up to the consumer to manage or we can do it in the library, after messing about with installing it in the library a little bit I found out that the extra.wordpress-install-dir config value is only read from the project that ran composer install. this means we can't default to public/cms or something so there's an extra install step but it gives the consumer of Koselig great flexibility.
    • how can we find out wordpress is installed if the config value is in the consumer's package.json?

Once we've done this we can change the current "git clone our base repo" setup instructions to "how to get this working in your laravel install!"

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.