Skip to content

tasior/laravel-echo-swift

Repository files navigation

laravel-echo-swift

Swift client for Laravel event broadcasting.

Swift port of official Laravel JavaScript library Echo.

##Example

// TODO: Write an example

##Installation Requires Swift 3/Xcode 8.x

Manually (iOS 7+)

  1. Copy the Source folder into your Xcode project. (Make sure you add the files to your target(s))
  2. If you plan on using this from Objective-C, read this on exposing Swift code to Objective-C.

Swift Package Manager

Add the project as a dependency to your Package.swift:

import PackageDescription

let package = Package(
    name: "LaravelEchoProject",
    dependencies: [
        .Package(url: "https://github.com/tasior/laravel-echo-swift", majorVersion: 1)
    ]
)

Then import import LaravelEcho.

CocoaPods 1.0.0 or later

Create Podfile and add pod 'laravel-echo-swift':

use_frameworks!

target 'YourApp' do
    pod 'laravel-echo-swift', '~> 1.0.0' # Or latest version
end

Install pods:

$ pod install

Import the module:

Swift:

import LaravelEcho

Objective-C:

@import LaravelEcho;

CocoaSeeds

Add this line to your Seedfile:

github "tasior/laravel-echo-swift", "v1.0.0", :files => "Sources/*.swift" # Or latest version

Run seed install.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published