Skip to content

Commit 2a8e919

Browse files
silviucppbenjben
authored andcommitted
Add Erlang port to the README (closes #158)
1 parent 1715c9d commit 2a8e919

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

README.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ If there is an issue with the database necessitating a re-release within the mon
3131
* .NET (C#): [Sepp Wijnands][swijnands] at [iPerform Software][iperform]
3232
* PHP: [Lars Strojny][lstrojny]
3333
* Go: [Thomas Sileo][tsileo]
34+
* Erlang [Silviu Caragea][silviucpp]
3435
* `referers.yml`: [Snowplow Analytics][snowplow-analytics]
3536

3637
## Usage: Java
@@ -138,7 +139,7 @@ The `r` variable now holds a Referer instance. The important attributes are:
138139
print(r.known) # True
139140
print(r.referer) # 'Google'
140141
print(r.medium) # 'search'
141-
print(r.search_parameter) # 'q'
142+
print(r.search_parameter) # 'q'
142143
print(r.search_term) # 'gateway oracle cards denise linn'
143144
print(r.uri) # ParseResult(scheme='http', netloc='www.google.com', path='/search', params='', query='q=gateway+oracle+cards+denise+linn&hl=en&client=safari', fragment='')
144145
```
@@ -257,6 +258,19 @@ func main() {
257258

258259
For more information, please see the Go [README][go-readme]
259260

261+
## Usage: Erlang
262+
263+
The Erlang port of the library is located [here][erlang-repo].
264+
265+
```erlang
266+
refererparser:start().
267+
refererparser:parse(
268+
<<"http://www.google.com/search?q=gateway+cards&client=safari">>, <<"http://my-web.com">>).
269+
{ok,{referer,search,<<"Google">>, <<"gateway cards">>}}
270+
```
271+
272+
For more information, please see the Erlang [README][erlang-readme]
273+
260274
## referers.yml
261275

262276
referer-parser identifies whether a URL is a known referer or not by checking it against the [`referers.yml`][referers-yml] file; the intention is that this YAML file is reusable as-is by every language-specific implementation of referer-parser.
@@ -317,6 +331,8 @@ The PHP port is copyright 2013-2014 [Lars Strojny][lstrojny] and is available un
317331

318332
The Go port is copyright 2014 [Thomas Sileo][tsileo] and is available under the [MIT License][mit-license].
319333

334+
The Erlang port is copyright 2017 [Silviu Caragea][silviucpp] and is available under the [MIT License][mit-license].
335+
320336
[ua-parser]: https://github.com/tobie/ua-parser
321337

322338
[snowplow]: https://github.com/snowplow/snowplow
@@ -328,6 +344,7 @@ The Go port is copyright 2014 [Thomas Sileo][tsileo] and is available under the
328344
[lstrojny]: https://github.com/lstrojny
329345
[tsileo]: https://github.com/tsileo
330346
[kreynolds]: https://github.com/kreynolds
347+
[silviucpp]: https://github.com/silviucpp
331348

332349
[piwik]: http://piwik.org
333350
[piwik-search-engines]: https://github.com/piwik/piwik/blob/master/core/DataFiles/SearchEngines.php
@@ -340,6 +357,8 @@ The Go port is copyright 2014 [Thomas Sileo][tsileo] and is available under the
340357
[dotnet-readme]: https://github.com/snowplow/referer-parser/blob/master/dotnet/README.md
341358
[php-readme]: https://github.com/snowplow/referer-parser/blob/master/php/README.md
342359
[go-readme]: https://github.com/snowplow/referer-parser/blob/master/go/README.md
360+
[erlang-readme]: https://github.com/silviucpp/refererparser/blob/master/README.md
361+
[erlang-repo]: https://github.com/silviucpp/refererparser
343362
[referers-yml]: https://github.com/snowplow/referer-parser/blob/master/resources/referers.yml
344363

345364
[talk-to-us]: https://github.com/snowplow/snowplow/wiki/Talk-to-us

0 commit comments

Comments
 (0)