Skip to content

Commit 27384f5

Browse files
Merge pull request #35 from JoolsMcFly/chore/update-documentation
Documentation updates
2 parents 8248afe + 7e59040 commit 27384f5

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

README.md

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,8 @@ ShapeFile library for PHP
88

99
## Features
1010

11-
Currently the 2D and 3D variants except MultiPatch of the ShapeFile format as
12-
defined in https://www.esri.com/library/whitepapers/pdfs/shapefile.pdf. The
13-
library currently supports reading and editing of ShapeFiles and the Associated
11+
This library supports the 2D and 3D variants, except MultiPatch, of the ShapeFile format as
12+
defined in https://www.esri.com/library/whitepapers/pdfs/shapefile.pdf. It can read and edit ShapeFiles and the associated
1413
information (DBF file). There are a lot of things that can be improved in the
1514
code, if you are interested in developing, helping with the documentation,
1615
making translations or offering new ideas please contact us.
@@ -23,35 +22,37 @@ Please use [Composer][1] to install:
2322
composer require phpmyadmin/shapefile
2423
```
2524

26-
To be able to read and write the associated DBF file, you need ``dbase``
25+
To be able to read and write the associated DBF file you need the ``dbase``
2726
extension:
2827

2928
```sh
3029
pecl install dbase
31-
echo "extension=dbase.so" > /etc/php7/conf.d/dbase.ini
30+
echo "extension=dbase.so" > /etc/php8/conf.d/dbase.ini
3231
```
3332

3433
## Documentation
3534

36-
The API documentation is available at
35+
API documentation is available at
3736
<https://develdocs.phpmyadmin.net/shapefile/>.
3837

3938
## Usage
4039

41-
To read shape file:
40+
To read a shape file:
4241

4342
```php
44-
$shp = new \PhpMyAdmin\ShapeFile\ShapeFile(0);
43+
use PhpMyAdmin\ShapeFile\ShapeFile;
44+
use PhpMyAdmin\ShapeFile\ShapeType;
45+
46+
$shp = new ShapeFile(ShapeType::Null);
4547
$shp->loadFromFile('path/file.*');
4648
```
4749

4850
## History
4951

5052
This library is based on BytesFall ShapeFiles library written by Ovidio (ovidio
51-
AT users.sourceforge.net). The library has been embedded in phpMyAdmin for
53+
AT users.sourceforge.net). It has been embedded in phpMyAdmin for
5254
years and slowly developed there. At one point people started to use our
53-
version rather than the original library and that was the point we decided to
54-
make it separate package.
55+
version rather than the original library and that was when we decided to
56+
make it a separate package.
5557

5658
[1]:https://getcomposer.org/
57-

0 commit comments

Comments
 (0)