Skip to content

Commit f58c11e

Browse files
committed
github token, readme file updated
1 parent aae02a2 commit f58c11e

File tree

4 files changed

+19
-58
lines changed

4 files changed

+19
-58
lines changed

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: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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
66
License: GPLv2 or later
77
License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -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)