Skip to content

Commit 5f5e804

Browse files
author
Maximilian Schmidt
committedMar 22, 2019
WIP
1 parent 72543e9 commit 5f5e804

9 files changed

+3194
-38
lines changed
 

‎.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
/vendor/
2+
/Docs/Api/

‎.vscode/project.code-snippets

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
// Place your crawler workspace snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and
3+
// description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope
4+
// is left empty or omitted, the snippet gets applied to all languages. The prefix is what is
5+
// used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
6+
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders.
7+
// Placeholders with the same ids are connected.
8+
// Example:
9+
// "Print to console": {
10+
// "scope": "javascript,typescript",
11+
// "prefix": "log",
12+
// "body": [
13+
// "console.log('$1');",
14+
// "$2"
15+
// ],
16+
// "description": "Log output to console"
17+
// }
18+
"PHP File": {
19+
"scope": "php",
20+
"prefix": "file",
21+
"description": "A PHP file",
22+
"body": [
23+
"",
24+
"/**",
25+
" * ${1:File description}",
26+
" *",
27+
" * @package mcstreetguy/crawler",
28+
" * @author Maximilian Schmidt <maximilianschmidt404@gmail.com>",
29+
" * @copyright 2019, Maximilian Schmidt",
30+
" * @license https://github.com/MCStreetguy/Crawler/blob/master/LICENSE MIT",
31+
" * @version SVN: \\$Id\\$",
32+
" */",
33+
"",
34+
"namespace MCStreetguy\\Crawler${2:\\\\};",
35+
"",
36+
"/*",
37+
" * This file is part of the mcstreetguy/crawler package.",
38+
" */",
39+
"",
40+
"$0"
41+
]
42+
}
43+
}

‎Classes/Crawler.php

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?php
2+
3+
/**
4+
* This file contains the main crawler class.
5+
*
6+
* @package mcstreetguy/crawler
7+
* @author Maximilian Schmidt <maximilianschmidt404@gmail.com>
8+
* @copyright 2019, Maximilian Schmidt
9+
* @license https://github.com/MCStreetguy/Crawler/blob/master/LICENSE MIT
10+
* @version SVN: $Id$
11+
*/
12+
13+
namespace MCStreetguy\Crawler;
14+
15+
/*
16+
* This file is part of the mcstreetguy/crawler package.
17+
*/
18+
19+
/**
20+
* The main class of the web-crawler.
21+
* This is the entry point to every usage of this library.
22+
*/
23+
class Crawler
24+
{
25+
}

‎Docs/.gitkeep

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.

‎LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2019 Maximilian Schmidt
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

‎Makefile

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
default:
2+
echo "Please specify a task!" && exit
3+
4+
update:
5+
composer update -o
6+
7+
build-docs: ensure-dependencies
8+
./vendor/bin/phpdoc -c "./phpdoc.xml"
9+
10+
ensure-dependencies: composer.lock
11+
12+
composer.lock:
13+
composer install -o

‎composer.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
"guzzlehttp/guzzle": "~6.0"
1111
},
1212
"require-dev": {
13-
"kint-php/kint": "^3.2"
13+
"kint-php/kint": "^3.2",
14+
"phpdocumentor/phpdocumentor": "^2.9"
1415
},
1516
"suggest": {
1617
"ext-curl": "For improved network requests, replaces stream handler usage."

0 commit comments

Comments
 (0)
Please sign in to comment.