GithubHelp home page GithubHelp logo

johnie / wp-autoload Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wpup/autoload

0.0 2.0 0.0 19 KB

:train2: Simple WordPress autoloader that will autoload classes or traits with namespace prefix

License: MIT License

PHP 100.00%

wp-autoload's Introduction

WordPress Autoload

Build Status License

Simple autoloader that will autoload classes, interfaces or traits with namespace prefix

Install

$ composer require frozzare/wp-autoload

Example

Example of your main php file.

require 'vendor/autoload.php';
register_wp_autoload( 'Example\\', __DIR__ . '/src' );

Example of src/class-plugin-loader.php

namespace Example;
class Plugin_Loader {}

Example of src/trait-crawler.php

namespace Example;
trait Crawler {}

Example of src/interface-say.php

namespace Example;
interface Say {}

License

MIT © Fredrik Forsmo

wp-autoload's People

Contributors

frozzare avatar

Watchers

 avatar  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.