Skip to content

Commit 48c2bb5

Browse files
authored
Merge pull request #6 from codeboxrcodehub/dev
merged from dev
2 parents aae02a2 + dbaa930 commit 48c2bb5

File tree

5 files changed

+41
-59
lines changed

5 files changed

+41
-59
lines changed

LICENSE.txt

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2019 PhpSpreadsheet Authors
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.

README.md

Lines changed: 7 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,6 @@
1-
=== CBX PhpSpreadSheet Library ===
2-
Contributors: codeboxr,manchumahara, moojomoore
3-
Requires at least: 3.5
4-
Tested up to: 6.4.2
5-
Stable tag: 1.0.5
6-
License: GPLv2 or later
7-
License URI: http://www.gnu.org/licenses/gpl-2.0.html
1+
Open source PhpSpreadSheet php library released as WordPress plugin to use easily
82

9-
Open source PhpSpreadSheet php library released as wordpress plugin to use easily
10-
11-
== Description ==
3+
## Description
124

135
A pure [PHP library for reading and writing spreadsheet files](https://phpspreadsheet.readthedocs.io)
146

@@ -30,49 +22,20 @@ The plugin check php version, php_zip, php_xml and php_gd2 library compatible or
3022

3123
How to use:
3224

33-
`
34-
if ( defined('CBXPHPSPREADSHEET_PLUGIN_NAME') && file_exists( CBXPHPSPREADSHEET_ROOT_PATH . 'lib/vendor/autoload.php' ) ) {
25+
``if ( defined('CBXPHPSPREADSHEET_PLUGIN_NAME') && file_exists( CBXPHPSPREADSHEET_ROOT_PATH . 'lib/vendor/autoload.php' ) ) {
26+
3527
//Include PHPExcel
3628
require_once( CBXPHPSPREADSHEET_ROOT_PATH . 'lib/vendor/autoload.php' );
3729

3830
//now take instance
3931
$objPHPExcel = new \PhpOffice\PhpSpreadsheet\Spreadsheet();
4032

4133
//do whatever you need to do
42-
}
43-
`
34+
}``
4435

45-
== Installation ==
36+
## Installation
4637

4738
1. Download the latest zip from here (https://github.com/codeboxrcodehub/cbxphpspreadsheet/releases)
4839
2. [WordPress has clear documentation about how to install a plugin].(https://codex.wordpress.org/Managing_Plugins)
4940
3. After install activate the plugin "CBX PhpSpreadSheet Library" through the 'Plugins' menu in WordPress
50-
4. This plugin doesn't load any library by default, it doesn't create extra folder or menu.
51-
52-
53-
54-
55-
56-
== Screenshots ==
57-
58-
1. yet to come
59-
60-
== Changelog ==
61-
62-
= 1.0.5 =
63-
* Dependency vendor packages updated to latest
64-
65-
= 1.0.4 =
66-
* Updated the phpspreadsheet package to latest V1.29.0
67-
68-
= 1.0.3 =
69-
* Updated the phpspreadsheet package to latest V1.21.0
70-
71-
= 1.0.2 =
72-
* Updated the phpspreadsheet package to latest V1.21.0
73-
74-
= 1.0.1 =
75-
* Updated the phpspreadsheet package to latest
76-
77-
= 1.0.0 =
78-
* First public release
41+
4. This plugin doesn't load any library by default, it doesn't create extra folder or menu.

README.txt

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
=== CBX PhpSpreadSheet Library ===
2-
Contributors: codeboxr,manchumahara, moojomoore
2+
Contributors: codeboxr, manchumahara
33
Requires at least: 3.5
4-
Tested up to: 6.4.2
4+
Tested up to: 6.4.3
55
Stable tag: 1.0.5
6-
License: GPLv2 or later
6+
License: MIT
77
License URI: http://www.gnu.org/licenses/gpl-2.0.html
88

99
Open source PhpSpreadSheet php library released as wordpress plugin to use easily
@@ -50,17 +50,11 @@ if ( defined('CBXPHPSPREADSHEET_PLUGIN_NAME') && file_exists( CBXPHPSPREADSHEET_
5050
4. This plugin doesn't load any library by default, it doesn't create extra folder or menu.
5151

5252

53-
54-
55-
56-
== Screenshots ==
57-
58-
1. yet to come
59-
6053
== Changelog ==
6154

6255
= 1.0.5 =
6356
* Dependency vendor packages updated to latest
57+
* Github.com based updater
6458

6559
= 1.0.4 =
6660
* Updated the phpspreadsheet package to latest V1.29.0

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cbx/php-spreadsheet",
3-
"description": " CBX Phpspreadsheet",
3+
"description": "Phpspreadsheet library for WordPress",
44
"type": "library",
55
"license": "MIT",
66
"config": {

includes/Hooks.php

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,24 @@
22

33
namespace Cbx\Phpspreadsheet;
44

5-
5+
/**
6+
* All hooks
7+
*/
68
class Hooks {
7-
89
public function __construct() {
910
$this->update_checker();
1011
}
1112

13+
/**
14+
* Update checker
15+
*
16+
* @return void
17+
*/
1218
public function update_checker() {
1319
$updater = new PDUpdater( CBXPHPSPREADSHEET_ROOT_PATH . 'cbxphpspreadsheet.php' );
1420
$updater->set_username( 'codeboxrcodehub' );
1521
$updater->set_repository( 'cbxphpspreadsheet' );
1622
$updater->authorize( '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' );
1723
$updater->initialize();
18-
19-
return;
2024
}//end method update_checker
2125
}//end class Hooks

0 commit comments

Comments
 (0)