/object-editor

A PHP script for adding and inspecting object properties.

Primary LanguagePHP

Object Edit

9/8/16

Description

User will be asked to choose a Class to instance from a list of files form the .src/ folder. User will be able to set new properties, retrieve a single value from a property, or retrieve all of the member properties of a given object.

Features

  • Load any valid Class from a local directory to be instanced for your object.
  • View a list of supported commands with the "HELP" command.
  • Add a property and value to instanced object with syntax checking.
  • If a property already exists value is type checked before updating.
  • Retrieve the value of a specified property.
  • Retrieve all of the all of the member properties of a given object.
  • Write a serialized sting as a record of instanced object.

Setup

Clone this repo and navigate via terminal to the root of the repo's folder. From your terminal:

$ php app.php

Technologies Used

This project was developed using OSX running PHP 5.5.36

To do

  • improve Bool assessment.
  • improve display output.
  • recall object from file.

Legal

Copyright (c) 2016 Charles A Moss

This software is licensed under the MIT license.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.