Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a method to rename fields easily #24

Open
stokescomp opened this issue May 19, 2019 · 1 comment
Open

Add a method to rename fields easily #24

stokescomp opened this issue May 19, 2019 · 1 comment

Comments

@stokescomp
Copy link

stokescomp commented May 19, 2019

I made a method for renaming a field.
I will add a pull request for it.
It will make it possible to do this:
$builder = Builder::fromFile('file.dbf')->renameField("name", "newname")->build('file2.dbf');

Instead of this:

$builder = Builder::fromFile('file.dbf');
$builder->getField("name")->setName("newname");
$builder->build('file2.dbf');
@majkel89
Copy link
Owner

Very nice. Just file the PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants