From 0a6755bc7267e639408de6051372bd76282e5c38 Mon Sep 17 00:00:00 2001 From: bijanmmarkes Date: Mon, 4 Oct 2021 16:53:58 -0700 Subject: [PATCH] readjusting namespace structure --- composer.json | 5 +- .../GPBMetadata/Google/Protobuf/Any.php | 0 .../GPBMetadata/Google/Protobuf/Api.php | 0 .../GPBMetadata/Google/Protobuf/Duration.php | 0 .../GPBMetadata/Google/Protobuf/FieldMask.php | 0 .../GPBMetadata/Google/Protobuf/GPBEmpty.php | 0 .../Google/Protobuf/Internal/Descriptor.php | 0 .../Google/Protobuf/SourceContext.php | 0 .../GPBMetadata/Google/Protobuf/Struct.php | 0 .../GPBMetadata/Google/Protobuf/Timestamp.php | 0 .../GPBMetadata/Google/Protobuf/Type.php | 0 .../GPBMetadata/Google/Protobuf/Wrappers.php | 0 .../protobuf/src => }/Google/Protobuf/Any.php | 0 .../protobuf/src => }/Google/Protobuf/Api.php | 0 .../src => }/Google/Protobuf/BoolValue.php | 0 .../src => }/Google/Protobuf/BytesValue.php | 0 .../src => }/Google/Protobuf/Descriptor.php | 0 .../Google/Protobuf/DescriptorPool.php | 0 .../src => }/Google/Protobuf/DoubleValue.php | 0 .../src => }/Google/Protobuf/Duration.php | 0 .../src => }/Google/Protobuf/Enum.php | 0 .../Google/Protobuf/EnumDescriptor.php | 0 .../src => }/Google/Protobuf/EnumValue.php | 0 .../Google/Protobuf/EnumValueDescriptor.php | 0 .../src => }/Google/Protobuf/Field.php | 0 .../Google/Protobuf/Field/Cardinality.php | 0 .../src => }/Google/Protobuf/Field/Kind.php | 0 .../Google/Protobuf/FieldDescriptor.php | 0 .../src => }/Google/Protobuf/FieldMask.php | 0 .../Google/Protobuf/Field_Cardinality.php | 0 .../src => }/Google/Protobuf/Field_Kind.php | 0 .../src => }/Google/Protobuf/FloatValue.php | 0 .../src => }/Google/Protobuf/GPBEmpty.php | 0 .../src => }/Google/Protobuf/Int32Value.php | 0 .../src => }/Google/Protobuf/Int64Value.php | 0 .../Protobuf/Internal/CodedInputStream.php | 0 .../Protobuf/Internal/CodedOutputStream.php | 0 .../Google/Protobuf/Internal/Descriptor.php | 0 .../Protobuf/Internal/DescriptorPool.php | 0 .../Protobuf/Internal/DescriptorProto.php | 0 .../DescriptorProto/ExtensionRange.php | 0 .../DescriptorProto/ReservedRange.php | 0 .../DescriptorProto_ExtensionRange.php | 0 .../DescriptorProto_ReservedRange.php | 0 .../Protobuf/Internal/EnumBuilderContext.php | 0 .../Protobuf/Internal/EnumDescriptor.php | 0 .../Protobuf/Internal/EnumDescriptorProto.php | 0 .../EnumDescriptorProto/EnumReservedRange.php | 0 .../EnumDescriptorProto_EnumReservedRange.php | 0 .../Google/Protobuf/Internal/EnumOptions.php | 0 .../Internal/EnumValueDescriptorProto.php | 0 .../Protobuf/Internal/EnumValueOptions.php | 0 .../Internal/ExtensionRangeOptions.php | 0 .../Protobuf/Internal/FieldDescriptor.php | 0 .../Internal/FieldDescriptorProto.php | 0 .../Internal/FieldDescriptorProto/Label.php | 0 .../Internal/FieldDescriptorProto/Type.php | 0 .../Internal/FieldDescriptorProto_Label.php | 0 .../Internal/FieldDescriptorProto_Type.php | 0 .../Google/Protobuf/Internal/FieldOptions.php | 0 .../Protobuf/Internal/FieldOptions/CType.php | 0 .../Protobuf/Internal/FieldOptions/JSType.php | 0 .../Protobuf/Internal/FieldOptions_CType.php | 0 .../Protobuf/Internal/FieldOptions_JSType.php | 0 .../Protobuf/Internal/FileDescriptor.php | 0 .../Protobuf/Internal/FileDescriptorProto.php | 0 .../Protobuf/Internal/FileDescriptorSet.php | 0 .../Google/Protobuf/Internal/FileOptions.php | 0 .../Internal/FileOptions/OptimizeMode.php | 0 .../Internal/FileOptions_OptimizeMode.php | 0 .../Protobuf/Internal/GPBDecodeException.php | 0 .../Google/Protobuf/Internal/GPBJsonWire.php | 0 .../Google/Protobuf/Internal/GPBLabel.php | 0 .../Google/Protobuf/Internal/GPBType.php | 0 .../Google/Protobuf/Internal/GPBUtil.php | 0 .../Google/Protobuf/Internal/GPBWire.php | 0 .../Google/Protobuf/Internal/GPBWireType.php | 0 .../Protobuf/Internal/GeneratedCodeInfo.php | 0 .../Internal/GeneratedCodeInfo/Annotation.php | 0 .../Internal/GeneratedCodeInfo_Annotation.php | 0 .../Internal/GetPublicDescriptorTrait.php | 0 .../Internal/HasPublicDescriptorTrait.php | 0 .../Google/Protobuf/Internal/MapEntry.php | 0 .../Google/Protobuf/Internal/MapField.php | 0 .../Google/Protobuf/Internal/MapFieldIter.php | 0 .../Google/Protobuf/Internal/Message.php | 0 .../Internal/MessageBuilderContext.php | 0 .../Protobuf/Internal/MessageOptions.php | 0 .../Internal/MethodDescriptorProto.php | 0 .../Protobuf/Internal/MethodOptions.php | 0 .../MethodOptions/IdempotencyLevel.php | 0 .../MethodOptions_IdempotencyLevel.php | 0 .../Protobuf/Internal/OneofDescriptor.php | 0 .../Internal/OneofDescriptorProto.php | 0 .../Google/Protobuf/Internal/OneofField.php | 0 .../Google/Protobuf/Internal/OneofOptions.php | 0 .../Protobuf/Internal/RawInputStream.php | 0 .../Protobuf/Internal/RepeatedField.php | 0 .../Protobuf/Internal/RepeatedFieldIter.php | 0 .../Internal/ServiceDescriptorProto.php | 0 .../Protobuf/Internal/ServiceOptions.php | 0 .../Protobuf/Internal/SourceCodeInfo.php | 0 .../Internal/SourceCodeInfo/Location.php | 0 .../Internal/SourceCodeInfo_Location.php | 0 .../Protobuf/Internal/UninterpretedOption.php | 0 .../Internal/UninterpretedOption/NamePart.php | 0 .../Internal/UninterpretedOption_NamePart.php | 0 .../src => }/Google/Protobuf/ListValue.php | 0 .../src => }/Google/Protobuf/Method.php | 0 .../src => }/Google/Protobuf/Mixin.php | 0 .../src => }/Google/Protobuf/NullValue.php | 0 .../Google/Protobuf/OneofDescriptor.php | 0 .../src => }/Google/Protobuf/Option.php | 0 .../Google/Protobuf/SourceContext.php | 0 .../src => }/Google/Protobuf/StringValue.php | 0 .../src => }/Google/Protobuf/Struct.php | 0 .../src => }/Google/Protobuf/Syntax.php | 0 .../src => }/Google/Protobuf/Timestamp.php | 0 .../src => }/Google/Protobuf/Type.php | 0 .../src => }/Google/Protobuf/UInt32Value.php | 0 .../src => }/Google/Protobuf/UInt64Value.php | 0 .../src => }/Google/Protobuf/Value.php | 0 src/google/protobuf/LICENSE | 29 --------- src/google/protobuf/README.md | 2 - src/google/protobuf/composer.json | 23 ------- src/google/protobuf/src/phpdoc.dist.xml | 15 ----- .../src => }/GPBMetadata/GtfsRealtime.php | 0 .../Google/Transit/Realtime/Alert.php | 0 .../Google/Transit/Realtime/Alert/Cause.php | 0 .../Google/Transit/Realtime/Alert/Effect.php | 0 .../Google/Transit/Realtime/Alert_Cause.php | 0 .../Google/Transit/Realtime/Alert_Effect.php | 0 .../Transit/Realtime/EntitySelector.php | 0 .../Google/Transit/Realtime/FeedEntity.php | 0 .../Google/Transit/Realtime/FeedHeader.php | 0 .../Realtime/FeedHeader/Incrementality.php | 0 .../Realtime/FeedHeader_Incrementality.php | 0 .../Google/Transit/Realtime/FeedMessage.php | 0 .../Google/Transit/Realtime/Position.php | 0 .../Google/Transit/Realtime/TimeRange.php | 0 .../Transit/Realtime/TranslatedString.php | 0 .../Realtime/TranslatedString/Translation.php | 0 .../Realtime/TranslatedString_Translation.php | 0 .../Transit/Realtime/TripDescriptor.php | 0 .../TripDescriptor/ScheduleRelationship.php | 0 .../TripDescriptor_ScheduleRelationship.php | 0 .../Google/Transit/Realtime/TripUpdate.php | 0 .../Realtime/TripUpdate/StopTimeEvent.php | 0 .../Realtime/TripUpdate/StopTimeUpdate.php | 0 .../StopTimeUpdate/ScheduleRelationship.php | 0 .../Realtime/TripUpdate_StopTimeEvent.php | 0 .../Realtime/TripUpdate_StopTimeUpdate.php | 0 ...te_StopTimeUpdate_ScheduleRelationship.php | 0 .../Transit/Realtime/VehicleDescriptor.php | 0 .../Transit/Realtime/VehiclePosition.php | 0 .../VehiclePosition/CongestionLevel.php | 0 .../VehiclePosition/OccupancyStatus.php | 0 .../VehiclePosition/VehicleStopStatus.php | 0 .../VehiclePosition_CongestionLevel.php | 0 .../VehiclePosition_OccupancyStatus.php | 0 .../VehiclePosition_VehicleStopStatus.php | 0 src/gtfs/realtime-php/.gitignore | 15 ----- src/gtfs/realtime-php/LICENSE.md | 24 ------- src/gtfs/realtime-php/README.md | 24 ------- src/gtfs/realtime-php/composer.json | 16 ----- src/gtfs/realtime-php/composer.lock | 59 ----------------- .../realtime-php/examples/ExampleAlert.json | 44 ------------- .../realtime-php/examples/ExampleAlert.pb | 9 --- .../realtime-php/examples/create_message.php | 63 ------------------- .../realtime-php/examples/parse_message.php | 11 ---- 170 files changed, 4 insertions(+), 335 deletions(-) rename src/{google/protobuf/src => }/GPBMetadata/Google/Protobuf/Any.php (100%) rename src/{google/protobuf/src => }/GPBMetadata/Google/Protobuf/Api.php (100%) rename src/{google/protobuf/src => }/GPBMetadata/Google/Protobuf/Duration.php (100%) rename src/{google/protobuf/src => }/GPBMetadata/Google/Protobuf/FieldMask.php (100%) rename src/{google/protobuf/src => }/GPBMetadata/Google/Protobuf/GPBEmpty.php (100%) rename src/{google/protobuf/src => }/GPBMetadata/Google/Protobuf/Internal/Descriptor.php (100%) rename src/{google/protobuf/src => }/GPBMetadata/Google/Protobuf/SourceContext.php (100%) rename src/{google/protobuf/src => }/GPBMetadata/Google/Protobuf/Struct.php (100%) rename src/{google/protobuf/src => }/GPBMetadata/Google/Protobuf/Timestamp.php (100%) rename src/{google/protobuf/src => }/GPBMetadata/Google/Protobuf/Type.php (100%) rename src/{google/protobuf/src => }/GPBMetadata/Google/Protobuf/Wrappers.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/Any.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/Api.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/BoolValue.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/BytesValue.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/Descriptor.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/DescriptorPool.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/DoubleValue.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/Duration.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/Enum.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/EnumDescriptor.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/EnumValue.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/EnumValueDescriptor.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/Field.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/Field/Cardinality.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/Field/Kind.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/FieldDescriptor.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/FieldMask.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/Field_Cardinality.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/Field_Kind.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/FloatValue.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/GPBEmpty.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/Int32Value.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/Int64Value.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/Internal/CodedInputStream.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/Internal/CodedOutputStream.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/Internal/Descriptor.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/Internal/DescriptorPool.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/Internal/DescriptorProto.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/Internal/DescriptorProto/ExtensionRange.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/Internal/DescriptorProto/ReservedRange.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/Internal/DescriptorProto_ExtensionRange.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/Internal/DescriptorProto_ReservedRange.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/Internal/EnumBuilderContext.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/Internal/EnumDescriptor.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/Internal/EnumDescriptorProto.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/Internal/EnumDescriptorProto/EnumReservedRange.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/Internal/EnumDescriptorProto_EnumReservedRange.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/Internal/EnumOptions.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/Internal/EnumValueDescriptorProto.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/Internal/EnumValueOptions.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/Internal/ExtensionRangeOptions.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/Internal/FieldDescriptor.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/Internal/FieldDescriptorProto.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/Internal/FieldDescriptorProto/Label.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/Internal/FieldDescriptorProto/Type.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/Internal/FieldDescriptorProto_Label.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/Internal/FieldDescriptorProto_Type.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/Internal/FieldOptions.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/Internal/FieldOptions/CType.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/Internal/FieldOptions/JSType.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/Internal/FieldOptions_CType.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/Internal/FieldOptions_JSType.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/Internal/FileDescriptor.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/Internal/FileDescriptorProto.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/Internal/FileDescriptorSet.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/Internal/FileOptions.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/Internal/FileOptions/OptimizeMode.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/Internal/FileOptions_OptimizeMode.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/Internal/GPBDecodeException.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/Internal/GPBJsonWire.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/Internal/GPBLabel.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/Internal/GPBType.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/Internal/GPBUtil.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/Internal/GPBWire.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/Internal/GPBWireType.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/Internal/GeneratedCodeInfo.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/Internal/GeneratedCodeInfo/Annotation.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/Internal/GeneratedCodeInfo_Annotation.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/Internal/GetPublicDescriptorTrait.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/Internal/HasPublicDescriptorTrait.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/Internal/MapEntry.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/Internal/MapField.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/Internal/MapFieldIter.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/Internal/Message.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/Internal/MessageBuilderContext.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/Internal/MessageOptions.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/Internal/MethodDescriptorProto.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/Internal/MethodOptions.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/Internal/MethodOptions/IdempotencyLevel.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/Internal/MethodOptions_IdempotencyLevel.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/Internal/OneofDescriptor.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/Internal/OneofDescriptorProto.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/Internal/OneofField.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/Internal/OneofOptions.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/Internal/RawInputStream.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/Internal/RepeatedField.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/Internal/RepeatedFieldIter.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/Internal/ServiceDescriptorProto.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/Internal/ServiceOptions.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/Internal/SourceCodeInfo.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/Internal/SourceCodeInfo/Location.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/Internal/SourceCodeInfo_Location.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/Internal/UninterpretedOption.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/Internal/UninterpretedOption/NamePart.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/Internal/UninterpretedOption_NamePart.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/ListValue.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/Method.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/Mixin.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/NullValue.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/OneofDescriptor.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/Option.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/SourceContext.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/StringValue.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/Struct.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/Syntax.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/Timestamp.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/Type.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/UInt32Value.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/UInt64Value.php (100%) rename src/{google/protobuf/src => }/Google/Protobuf/Value.php (100%) delete mode 100644 src/google/protobuf/LICENSE delete mode 100644 src/google/protobuf/README.md delete mode 100644 src/google/protobuf/composer.json delete mode 100644 src/google/protobuf/src/phpdoc.dist.xml rename src/gtfs/{realtime-php/src => }/GPBMetadata/GtfsRealtime.php (100%) rename src/gtfs/{realtime-php/src => }/Google/Transit/Realtime/Alert.php (100%) rename src/gtfs/{realtime-php/src => }/Google/Transit/Realtime/Alert/Cause.php (100%) rename src/gtfs/{realtime-php/src => }/Google/Transit/Realtime/Alert/Effect.php (100%) rename src/gtfs/{realtime-php/src => }/Google/Transit/Realtime/Alert_Cause.php (100%) rename src/gtfs/{realtime-php/src => }/Google/Transit/Realtime/Alert_Effect.php (100%) rename src/gtfs/{realtime-php/src => }/Google/Transit/Realtime/EntitySelector.php (100%) rename src/gtfs/{realtime-php/src => }/Google/Transit/Realtime/FeedEntity.php (100%) rename src/gtfs/{realtime-php/src => }/Google/Transit/Realtime/FeedHeader.php (100%) rename src/gtfs/{realtime-php/src => }/Google/Transit/Realtime/FeedHeader/Incrementality.php (100%) rename src/gtfs/{realtime-php/src => }/Google/Transit/Realtime/FeedHeader_Incrementality.php (100%) rename src/gtfs/{realtime-php/src => }/Google/Transit/Realtime/FeedMessage.php (100%) rename src/gtfs/{realtime-php/src => }/Google/Transit/Realtime/Position.php (100%) rename src/gtfs/{realtime-php/src => }/Google/Transit/Realtime/TimeRange.php (100%) rename src/gtfs/{realtime-php/src => }/Google/Transit/Realtime/TranslatedString.php (100%) rename src/gtfs/{realtime-php/src => }/Google/Transit/Realtime/TranslatedString/Translation.php (100%) rename src/gtfs/{realtime-php/src => }/Google/Transit/Realtime/TranslatedString_Translation.php (100%) rename src/gtfs/{realtime-php/src => }/Google/Transit/Realtime/TripDescriptor.php (100%) rename src/gtfs/{realtime-php/src => }/Google/Transit/Realtime/TripDescriptor/ScheduleRelationship.php (100%) rename src/gtfs/{realtime-php/src => }/Google/Transit/Realtime/TripDescriptor_ScheduleRelationship.php (100%) rename src/gtfs/{realtime-php/src => }/Google/Transit/Realtime/TripUpdate.php (100%) rename src/gtfs/{realtime-php/src => }/Google/Transit/Realtime/TripUpdate/StopTimeEvent.php (100%) rename src/gtfs/{realtime-php/src => }/Google/Transit/Realtime/TripUpdate/StopTimeUpdate.php (100%) rename src/gtfs/{realtime-php/src => }/Google/Transit/Realtime/TripUpdate/StopTimeUpdate/ScheduleRelationship.php (100%) rename src/gtfs/{realtime-php/src => }/Google/Transit/Realtime/TripUpdate_StopTimeEvent.php (100%) rename src/gtfs/{realtime-php/src => }/Google/Transit/Realtime/TripUpdate_StopTimeUpdate.php (100%) rename src/gtfs/{realtime-php/src => }/Google/Transit/Realtime/TripUpdate_StopTimeUpdate_ScheduleRelationship.php (100%) rename src/gtfs/{realtime-php/src => }/Google/Transit/Realtime/VehicleDescriptor.php (100%) rename src/gtfs/{realtime-php/src => }/Google/Transit/Realtime/VehiclePosition.php (100%) rename src/gtfs/{realtime-php/src => }/Google/Transit/Realtime/VehiclePosition/CongestionLevel.php (100%) rename src/gtfs/{realtime-php/src => }/Google/Transit/Realtime/VehiclePosition/OccupancyStatus.php (100%) rename src/gtfs/{realtime-php/src => }/Google/Transit/Realtime/VehiclePosition/VehicleStopStatus.php (100%) rename src/gtfs/{realtime-php/src => }/Google/Transit/Realtime/VehiclePosition_CongestionLevel.php (100%) rename src/gtfs/{realtime-php/src => }/Google/Transit/Realtime/VehiclePosition_OccupancyStatus.php (100%) rename src/gtfs/{realtime-php/src => }/Google/Transit/Realtime/VehiclePosition_VehicleStopStatus.php (100%) delete mode 100644 src/gtfs/realtime-php/.gitignore delete mode 100644 src/gtfs/realtime-php/LICENSE.md delete mode 100644 src/gtfs/realtime-php/README.md delete mode 100644 src/gtfs/realtime-php/composer.json delete mode 100644 src/gtfs/realtime-php/composer.lock delete mode 100644 src/gtfs/realtime-php/examples/ExampleAlert.json delete mode 100644 src/gtfs/realtime-php/examples/ExampleAlert.pb delete mode 100644 src/gtfs/realtime-php/examples/create_message.php delete mode 100644 src/gtfs/realtime-php/examples/parse_message.php diff --git a/composer.json b/composer.json index 66b23f9..8723acc 100644 --- a/composer.json +++ b/composer.json @@ -4,7 +4,10 @@ "type": "library", "autoload": { "psr-4": { - "Bijanmmarkes\\PhpGtfsRealTimeTransit\\": "src/" + "Google\\Protobuf\\": "src/Google/Protobuf", + "GPBMetadata\\Google\\Protobuf\\": "src/GPBMetadata/Google/Protobuf", + "Google\\Transit\\Realtime\\": "src/gtfs/Google/Transit/Realtime", + "GPBMetadata\\Src\\": "src/gtfs/GPBMetadata" } }, "authors": [ diff --git a/src/google/protobuf/src/GPBMetadata/Google/Protobuf/Any.php b/src/GPBMetadata/Google/Protobuf/Any.php similarity index 100% rename from src/google/protobuf/src/GPBMetadata/Google/Protobuf/Any.php rename to src/GPBMetadata/Google/Protobuf/Any.php diff --git a/src/google/protobuf/src/GPBMetadata/Google/Protobuf/Api.php b/src/GPBMetadata/Google/Protobuf/Api.php similarity index 100% rename from src/google/protobuf/src/GPBMetadata/Google/Protobuf/Api.php rename to src/GPBMetadata/Google/Protobuf/Api.php diff --git a/src/google/protobuf/src/GPBMetadata/Google/Protobuf/Duration.php b/src/GPBMetadata/Google/Protobuf/Duration.php similarity index 100% rename from src/google/protobuf/src/GPBMetadata/Google/Protobuf/Duration.php rename to src/GPBMetadata/Google/Protobuf/Duration.php diff --git a/src/google/protobuf/src/GPBMetadata/Google/Protobuf/FieldMask.php b/src/GPBMetadata/Google/Protobuf/FieldMask.php similarity index 100% rename from src/google/protobuf/src/GPBMetadata/Google/Protobuf/FieldMask.php rename to src/GPBMetadata/Google/Protobuf/FieldMask.php diff --git a/src/google/protobuf/src/GPBMetadata/Google/Protobuf/GPBEmpty.php b/src/GPBMetadata/Google/Protobuf/GPBEmpty.php similarity index 100% rename from src/google/protobuf/src/GPBMetadata/Google/Protobuf/GPBEmpty.php rename to src/GPBMetadata/Google/Protobuf/GPBEmpty.php diff --git a/src/google/protobuf/src/GPBMetadata/Google/Protobuf/Internal/Descriptor.php b/src/GPBMetadata/Google/Protobuf/Internal/Descriptor.php similarity index 100% rename from src/google/protobuf/src/GPBMetadata/Google/Protobuf/Internal/Descriptor.php rename to src/GPBMetadata/Google/Protobuf/Internal/Descriptor.php diff --git a/src/google/protobuf/src/GPBMetadata/Google/Protobuf/SourceContext.php b/src/GPBMetadata/Google/Protobuf/SourceContext.php similarity index 100% rename from src/google/protobuf/src/GPBMetadata/Google/Protobuf/SourceContext.php rename to src/GPBMetadata/Google/Protobuf/SourceContext.php diff --git a/src/google/protobuf/src/GPBMetadata/Google/Protobuf/Struct.php b/src/GPBMetadata/Google/Protobuf/Struct.php similarity index 100% rename from src/google/protobuf/src/GPBMetadata/Google/Protobuf/Struct.php rename to src/GPBMetadata/Google/Protobuf/Struct.php diff --git a/src/google/protobuf/src/GPBMetadata/Google/Protobuf/Timestamp.php b/src/GPBMetadata/Google/Protobuf/Timestamp.php similarity index 100% rename from src/google/protobuf/src/GPBMetadata/Google/Protobuf/Timestamp.php rename to src/GPBMetadata/Google/Protobuf/Timestamp.php diff --git a/src/google/protobuf/src/GPBMetadata/Google/Protobuf/Type.php b/src/GPBMetadata/Google/Protobuf/Type.php similarity index 100% rename from src/google/protobuf/src/GPBMetadata/Google/Protobuf/Type.php rename to src/GPBMetadata/Google/Protobuf/Type.php diff --git a/src/google/protobuf/src/GPBMetadata/Google/Protobuf/Wrappers.php b/src/GPBMetadata/Google/Protobuf/Wrappers.php similarity index 100% rename from src/google/protobuf/src/GPBMetadata/Google/Protobuf/Wrappers.php rename to src/GPBMetadata/Google/Protobuf/Wrappers.php diff --git a/src/google/protobuf/src/Google/Protobuf/Any.php b/src/Google/Protobuf/Any.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/Any.php rename to src/Google/Protobuf/Any.php diff --git a/src/google/protobuf/src/Google/Protobuf/Api.php b/src/Google/Protobuf/Api.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/Api.php rename to src/Google/Protobuf/Api.php diff --git a/src/google/protobuf/src/Google/Protobuf/BoolValue.php b/src/Google/Protobuf/BoolValue.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/BoolValue.php rename to src/Google/Protobuf/BoolValue.php diff --git a/src/google/protobuf/src/Google/Protobuf/BytesValue.php b/src/Google/Protobuf/BytesValue.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/BytesValue.php rename to src/Google/Protobuf/BytesValue.php diff --git a/src/google/protobuf/src/Google/Protobuf/Descriptor.php b/src/Google/Protobuf/Descriptor.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/Descriptor.php rename to src/Google/Protobuf/Descriptor.php diff --git a/src/google/protobuf/src/Google/Protobuf/DescriptorPool.php b/src/Google/Protobuf/DescriptorPool.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/DescriptorPool.php rename to src/Google/Protobuf/DescriptorPool.php diff --git a/src/google/protobuf/src/Google/Protobuf/DoubleValue.php b/src/Google/Protobuf/DoubleValue.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/DoubleValue.php rename to src/Google/Protobuf/DoubleValue.php diff --git a/src/google/protobuf/src/Google/Protobuf/Duration.php b/src/Google/Protobuf/Duration.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/Duration.php rename to src/Google/Protobuf/Duration.php diff --git a/src/google/protobuf/src/Google/Protobuf/Enum.php b/src/Google/Protobuf/Enum.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/Enum.php rename to src/Google/Protobuf/Enum.php diff --git a/src/google/protobuf/src/Google/Protobuf/EnumDescriptor.php b/src/Google/Protobuf/EnumDescriptor.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/EnumDescriptor.php rename to src/Google/Protobuf/EnumDescriptor.php diff --git a/src/google/protobuf/src/Google/Protobuf/EnumValue.php b/src/Google/Protobuf/EnumValue.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/EnumValue.php rename to src/Google/Protobuf/EnumValue.php diff --git a/src/google/protobuf/src/Google/Protobuf/EnumValueDescriptor.php b/src/Google/Protobuf/EnumValueDescriptor.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/EnumValueDescriptor.php rename to src/Google/Protobuf/EnumValueDescriptor.php diff --git a/src/google/protobuf/src/Google/Protobuf/Field.php b/src/Google/Protobuf/Field.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/Field.php rename to src/Google/Protobuf/Field.php diff --git a/src/google/protobuf/src/Google/Protobuf/Field/Cardinality.php b/src/Google/Protobuf/Field/Cardinality.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/Field/Cardinality.php rename to src/Google/Protobuf/Field/Cardinality.php diff --git a/src/google/protobuf/src/Google/Protobuf/Field/Kind.php b/src/Google/Protobuf/Field/Kind.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/Field/Kind.php rename to src/Google/Protobuf/Field/Kind.php diff --git a/src/google/protobuf/src/Google/Protobuf/FieldDescriptor.php b/src/Google/Protobuf/FieldDescriptor.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/FieldDescriptor.php rename to src/Google/Protobuf/FieldDescriptor.php diff --git a/src/google/protobuf/src/Google/Protobuf/FieldMask.php b/src/Google/Protobuf/FieldMask.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/FieldMask.php rename to src/Google/Protobuf/FieldMask.php diff --git a/src/google/protobuf/src/Google/Protobuf/Field_Cardinality.php b/src/Google/Protobuf/Field_Cardinality.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/Field_Cardinality.php rename to src/Google/Protobuf/Field_Cardinality.php diff --git a/src/google/protobuf/src/Google/Protobuf/Field_Kind.php b/src/Google/Protobuf/Field_Kind.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/Field_Kind.php rename to src/Google/Protobuf/Field_Kind.php diff --git a/src/google/protobuf/src/Google/Protobuf/FloatValue.php b/src/Google/Protobuf/FloatValue.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/FloatValue.php rename to src/Google/Protobuf/FloatValue.php diff --git a/src/google/protobuf/src/Google/Protobuf/GPBEmpty.php b/src/Google/Protobuf/GPBEmpty.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/GPBEmpty.php rename to src/Google/Protobuf/GPBEmpty.php diff --git a/src/google/protobuf/src/Google/Protobuf/Int32Value.php b/src/Google/Protobuf/Int32Value.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/Int32Value.php rename to src/Google/Protobuf/Int32Value.php diff --git a/src/google/protobuf/src/Google/Protobuf/Int64Value.php b/src/Google/Protobuf/Int64Value.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/Int64Value.php rename to src/Google/Protobuf/Int64Value.php diff --git a/src/google/protobuf/src/Google/Protobuf/Internal/CodedInputStream.php b/src/Google/Protobuf/Internal/CodedInputStream.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/Internal/CodedInputStream.php rename to src/Google/Protobuf/Internal/CodedInputStream.php diff --git a/src/google/protobuf/src/Google/Protobuf/Internal/CodedOutputStream.php b/src/Google/Protobuf/Internal/CodedOutputStream.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/Internal/CodedOutputStream.php rename to src/Google/Protobuf/Internal/CodedOutputStream.php diff --git a/src/google/protobuf/src/Google/Protobuf/Internal/Descriptor.php b/src/Google/Protobuf/Internal/Descriptor.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/Internal/Descriptor.php rename to src/Google/Protobuf/Internal/Descriptor.php diff --git a/src/google/protobuf/src/Google/Protobuf/Internal/DescriptorPool.php b/src/Google/Protobuf/Internal/DescriptorPool.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/Internal/DescriptorPool.php rename to src/Google/Protobuf/Internal/DescriptorPool.php diff --git a/src/google/protobuf/src/Google/Protobuf/Internal/DescriptorProto.php b/src/Google/Protobuf/Internal/DescriptorProto.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/Internal/DescriptorProto.php rename to src/Google/Protobuf/Internal/DescriptorProto.php diff --git a/src/google/protobuf/src/Google/Protobuf/Internal/DescriptorProto/ExtensionRange.php b/src/Google/Protobuf/Internal/DescriptorProto/ExtensionRange.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/Internal/DescriptorProto/ExtensionRange.php rename to src/Google/Protobuf/Internal/DescriptorProto/ExtensionRange.php diff --git a/src/google/protobuf/src/Google/Protobuf/Internal/DescriptorProto/ReservedRange.php b/src/Google/Protobuf/Internal/DescriptorProto/ReservedRange.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/Internal/DescriptorProto/ReservedRange.php rename to src/Google/Protobuf/Internal/DescriptorProto/ReservedRange.php diff --git a/src/google/protobuf/src/Google/Protobuf/Internal/DescriptorProto_ExtensionRange.php b/src/Google/Protobuf/Internal/DescriptorProto_ExtensionRange.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/Internal/DescriptorProto_ExtensionRange.php rename to src/Google/Protobuf/Internal/DescriptorProto_ExtensionRange.php diff --git a/src/google/protobuf/src/Google/Protobuf/Internal/DescriptorProto_ReservedRange.php b/src/Google/Protobuf/Internal/DescriptorProto_ReservedRange.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/Internal/DescriptorProto_ReservedRange.php rename to src/Google/Protobuf/Internal/DescriptorProto_ReservedRange.php diff --git a/src/google/protobuf/src/Google/Protobuf/Internal/EnumBuilderContext.php b/src/Google/Protobuf/Internal/EnumBuilderContext.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/Internal/EnumBuilderContext.php rename to src/Google/Protobuf/Internal/EnumBuilderContext.php diff --git a/src/google/protobuf/src/Google/Protobuf/Internal/EnumDescriptor.php b/src/Google/Protobuf/Internal/EnumDescriptor.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/Internal/EnumDescriptor.php rename to src/Google/Protobuf/Internal/EnumDescriptor.php diff --git a/src/google/protobuf/src/Google/Protobuf/Internal/EnumDescriptorProto.php b/src/Google/Protobuf/Internal/EnumDescriptorProto.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/Internal/EnumDescriptorProto.php rename to src/Google/Protobuf/Internal/EnumDescriptorProto.php diff --git a/src/google/protobuf/src/Google/Protobuf/Internal/EnumDescriptorProto/EnumReservedRange.php b/src/Google/Protobuf/Internal/EnumDescriptorProto/EnumReservedRange.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/Internal/EnumDescriptorProto/EnumReservedRange.php rename to src/Google/Protobuf/Internal/EnumDescriptorProto/EnumReservedRange.php diff --git a/src/google/protobuf/src/Google/Protobuf/Internal/EnumDescriptorProto_EnumReservedRange.php b/src/Google/Protobuf/Internal/EnumDescriptorProto_EnumReservedRange.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/Internal/EnumDescriptorProto_EnumReservedRange.php rename to src/Google/Protobuf/Internal/EnumDescriptorProto_EnumReservedRange.php diff --git a/src/google/protobuf/src/Google/Protobuf/Internal/EnumOptions.php b/src/Google/Protobuf/Internal/EnumOptions.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/Internal/EnumOptions.php rename to src/Google/Protobuf/Internal/EnumOptions.php diff --git a/src/google/protobuf/src/Google/Protobuf/Internal/EnumValueDescriptorProto.php b/src/Google/Protobuf/Internal/EnumValueDescriptorProto.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/Internal/EnumValueDescriptorProto.php rename to src/Google/Protobuf/Internal/EnumValueDescriptorProto.php diff --git a/src/google/protobuf/src/Google/Protobuf/Internal/EnumValueOptions.php b/src/Google/Protobuf/Internal/EnumValueOptions.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/Internal/EnumValueOptions.php rename to src/Google/Protobuf/Internal/EnumValueOptions.php diff --git a/src/google/protobuf/src/Google/Protobuf/Internal/ExtensionRangeOptions.php b/src/Google/Protobuf/Internal/ExtensionRangeOptions.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/Internal/ExtensionRangeOptions.php rename to src/Google/Protobuf/Internal/ExtensionRangeOptions.php diff --git a/src/google/protobuf/src/Google/Protobuf/Internal/FieldDescriptor.php b/src/Google/Protobuf/Internal/FieldDescriptor.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/Internal/FieldDescriptor.php rename to src/Google/Protobuf/Internal/FieldDescriptor.php diff --git a/src/google/protobuf/src/Google/Protobuf/Internal/FieldDescriptorProto.php b/src/Google/Protobuf/Internal/FieldDescriptorProto.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/Internal/FieldDescriptorProto.php rename to src/Google/Protobuf/Internal/FieldDescriptorProto.php diff --git a/src/google/protobuf/src/Google/Protobuf/Internal/FieldDescriptorProto/Label.php b/src/Google/Protobuf/Internal/FieldDescriptorProto/Label.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/Internal/FieldDescriptorProto/Label.php rename to src/Google/Protobuf/Internal/FieldDescriptorProto/Label.php diff --git a/src/google/protobuf/src/Google/Protobuf/Internal/FieldDescriptorProto/Type.php b/src/Google/Protobuf/Internal/FieldDescriptorProto/Type.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/Internal/FieldDescriptorProto/Type.php rename to src/Google/Protobuf/Internal/FieldDescriptorProto/Type.php diff --git a/src/google/protobuf/src/Google/Protobuf/Internal/FieldDescriptorProto_Label.php b/src/Google/Protobuf/Internal/FieldDescriptorProto_Label.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/Internal/FieldDescriptorProto_Label.php rename to src/Google/Protobuf/Internal/FieldDescriptorProto_Label.php diff --git a/src/google/protobuf/src/Google/Protobuf/Internal/FieldDescriptorProto_Type.php b/src/Google/Protobuf/Internal/FieldDescriptorProto_Type.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/Internal/FieldDescriptorProto_Type.php rename to src/Google/Protobuf/Internal/FieldDescriptorProto_Type.php diff --git a/src/google/protobuf/src/Google/Protobuf/Internal/FieldOptions.php b/src/Google/Protobuf/Internal/FieldOptions.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/Internal/FieldOptions.php rename to src/Google/Protobuf/Internal/FieldOptions.php diff --git a/src/google/protobuf/src/Google/Protobuf/Internal/FieldOptions/CType.php b/src/Google/Protobuf/Internal/FieldOptions/CType.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/Internal/FieldOptions/CType.php rename to src/Google/Protobuf/Internal/FieldOptions/CType.php diff --git a/src/google/protobuf/src/Google/Protobuf/Internal/FieldOptions/JSType.php b/src/Google/Protobuf/Internal/FieldOptions/JSType.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/Internal/FieldOptions/JSType.php rename to src/Google/Protobuf/Internal/FieldOptions/JSType.php diff --git a/src/google/protobuf/src/Google/Protobuf/Internal/FieldOptions_CType.php b/src/Google/Protobuf/Internal/FieldOptions_CType.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/Internal/FieldOptions_CType.php rename to src/Google/Protobuf/Internal/FieldOptions_CType.php diff --git a/src/google/protobuf/src/Google/Protobuf/Internal/FieldOptions_JSType.php b/src/Google/Protobuf/Internal/FieldOptions_JSType.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/Internal/FieldOptions_JSType.php rename to src/Google/Protobuf/Internal/FieldOptions_JSType.php diff --git a/src/google/protobuf/src/Google/Protobuf/Internal/FileDescriptor.php b/src/Google/Protobuf/Internal/FileDescriptor.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/Internal/FileDescriptor.php rename to src/Google/Protobuf/Internal/FileDescriptor.php diff --git a/src/google/protobuf/src/Google/Protobuf/Internal/FileDescriptorProto.php b/src/Google/Protobuf/Internal/FileDescriptorProto.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/Internal/FileDescriptorProto.php rename to src/Google/Protobuf/Internal/FileDescriptorProto.php diff --git a/src/google/protobuf/src/Google/Protobuf/Internal/FileDescriptorSet.php b/src/Google/Protobuf/Internal/FileDescriptorSet.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/Internal/FileDescriptorSet.php rename to src/Google/Protobuf/Internal/FileDescriptorSet.php diff --git a/src/google/protobuf/src/Google/Protobuf/Internal/FileOptions.php b/src/Google/Protobuf/Internal/FileOptions.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/Internal/FileOptions.php rename to src/Google/Protobuf/Internal/FileOptions.php diff --git a/src/google/protobuf/src/Google/Protobuf/Internal/FileOptions/OptimizeMode.php b/src/Google/Protobuf/Internal/FileOptions/OptimizeMode.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/Internal/FileOptions/OptimizeMode.php rename to src/Google/Protobuf/Internal/FileOptions/OptimizeMode.php diff --git a/src/google/protobuf/src/Google/Protobuf/Internal/FileOptions_OptimizeMode.php b/src/Google/Protobuf/Internal/FileOptions_OptimizeMode.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/Internal/FileOptions_OptimizeMode.php rename to src/Google/Protobuf/Internal/FileOptions_OptimizeMode.php diff --git a/src/google/protobuf/src/Google/Protobuf/Internal/GPBDecodeException.php b/src/Google/Protobuf/Internal/GPBDecodeException.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/Internal/GPBDecodeException.php rename to src/Google/Protobuf/Internal/GPBDecodeException.php diff --git a/src/google/protobuf/src/Google/Protobuf/Internal/GPBJsonWire.php b/src/Google/Protobuf/Internal/GPBJsonWire.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/Internal/GPBJsonWire.php rename to src/Google/Protobuf/Internal/GPBJsonWire.php diff --git a/src/google/protobuf/src/Google/Protobuf/Internal/GPBLabel.php b/src/Google/Protobuf/Internal/GPBLabel.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/Internal/GPBLabel.php rename to src/Google/Protobuf/Internal/GPBLabel.php diff --git a/src/google/protobuf/src/Google/Protobuf/Internal/GPBType.php b/src/Google/Protobuf/Internal/GPBType.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/Internal/GPBType.php rename to src/Google/Protobuf/Internal/GPBType.php diff --git a/src/google/protobuf/src/Google/Protobuf/Internal/GPBUtil.php b/src/Google/Protobuf/Internal/GPBUtil.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/Internal/GPBUtil.php rename to src/Google/Protobuf/Internal/GPBUtil.php diff --git a/src/google/protobuf/src/Google/Protobuf/Internal/GPBWire.php b/src/Google/Protobuf/Internal/GPBWire.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/Internal/GPBWire.php rename to src/Google/Protobuf/Internal/GPBWire.php diff --git a/src/google/protobuf/src/Google/Protobuf/Internal/GPBWireType.php b/src/Google/Protobuf/Internal/GPBWireType.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/Internal/GPBWireType.php rename to src/Google/Protobuf/Internal/GPBWireType.php diff --git a/src/google/protobuf/src/Google/Protobuf/Internal/GeneratedCodeInfo.php b/src/Google/Protobuf/Internal/GeneratedCodeInfo.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/Internal/GeneratedCodeInfo.php rename to src/Google/Protobuf/Internal/GeneratedCodeInfo.php diff --git a/src/google/protobuf/src/Google/Protobuf/Internal/GeneratedCodeInfo/Annotation.php b/src/Google/Protobuf/Internal/GeneratedCodeInfo/Annotation.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/Internal/GeneratedCodeInfo/Annotation.php rename to src/Google/Protobuf/Internal/GeneratedCodeInfo/Annotation.php diff --git a/src/google/protobuf/src/Google/Protobuf/Internal/GeneratedCodeInfo_Annotation.php b/src/Google/Protobuf/Internal/GeneratedCodeInfo_Annotation.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/Internal/GeneratedCodeInfo_Annotation.php rename to src/Google/Protobuf/Internal/GeneratedCodeInfo_Annotation.php diff --git a/src/google/protobuf/src/Google/Protobuf/Internal/GetPublicDescriptorTrait.php b/src/Google/Protobuf/Internal/GetPublicDescriptorTrait.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/Internal/GetPublicDescriptorTrait.php rename to src/Google/Protobuf/Internal/GetPublicDescriptorTrait.php diff --git a/src/google/protobuf/src/Google/Protobuf/Internal/HasPublicDescriptorTrait.php b/src/Google/Protobuf/Internal/HasPublicDescriptorTrait.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/Internal/HasPublicDescriptorTrait.php rename to src/Google/Protobuf/Internal/HasPublicDescriptorTrait.php diff --git a/src/google/protobuf/src/Google/Protobuf/Internal/MapEntry.php b/src/Google/Protobuf/Internal/MapEntry.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/Internal/MapEntry.php rename to src/Google/Protobuf/Internal/MapEntry.php diff --git a/src/google/protobuf/src/Google/Protobuf/Internal/MapField.php b/src/Google/Protobuf/Internal/MapField.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/Internal/MapField.php rename to src/Google/Protobuf/Internal/MapField.php diff --git a/src/google/protobuf/src/Google/Protobuf/Internal/MapFieldIter.php b/src/Google/Protobuf/Internal/MapFieldIter.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/Internal/MapFieldIter.php rename to src/Google/Protobuf/Internal/MapFieldIter.php diff --git a/src/google/protobuf/src/Google/Protobuf/Internal/Message.php b/src/Google/Protobuf/Internal/Message.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/Internal/Message.php rename to src/Google/Protobuf/Internal/Message.php diff --git a/src/google/protobuf/src/Google/Protobuf/Internal/MessageBuilderContext.php b/src/Google/Protobuf/Internal/MessageBuilderContext.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/Internal/MessageBuilderContext.php rename to src/Google/Protobuf/Internal/MessageBuilderContext.php diff --git a/src/google/protobuf/src/Google/Protobuf/Internal/MessageOptions.php b/src/Google/Protobuf/Internal/MessageOptions.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/Internal/MessageOptions.php rename to src/Google/Protobuf/Internal/MessageOptions.php diff --git a/src/google/protobuf/src/Google/Protobuf/Internal/MethodDescriptorProto.php b/src/Google/Protobuf/Internal/MethodDescriptorProto.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/Internal/MethodDescriptorProto.php rename to src/Google/Protobuf/Internal/MethodDescriptorProto.php diff --git a/src/google/protobuf/src/Google/Protobuf/Internal/MethodOptions.php b/src/Google/Protobuf/Internal/MethodOptions.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/Internal/MethodOptions.php rename to src/Google/Protobuf/Internal/MethodOptions.php diff --git a/src/google/protobuf/src/Google/Protobuf/Internal/MethodOptions/IdempotencyLevel.php b/src/Google/Protobuf/Internal/MethodOptions/IdempotencyLevel.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/Internal/MethodOptions/IdempotencyLevel.php rename to src/Google/Protobuf/Internal/MethodOptions/IdempotencyLevel.php diff --git a/src/google/protobuf/src/Google/Protobuf/Internal/MethodOptions_IdempotencyLevel.php b/src/Google/Protobuf/Internal/MethodOptions_IdempotencyLevel.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/Internal/MethodOptions_IdempotencyLevel.php rename to src/Google/Protobuf/Internal/MethodOptions_IdempotencyLevel.php diff --git a/src/google/protobuf/src/Google/Protobuf/Internal/OneofDescriptor.php b/src/Google/Protobuf/Internal/OneofDescriptor.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/Internal/OneofDescriptor.php rename to src/Google/Protobuf/Internal/OneofDescriptor.php diff --git a/src/google/protobuf/src/Google/Protobuf/Internal/OneofDescriptorProto.php b/src/Google/Protobuf/Internal/OneofDescriptorProto.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/Internal/OneofDescriptorProto.php rename to src/Google/Protobuf/Internal/OneofDescriptorProto.php diff --git a/src/google/protobuf/src/Google/Protobuf/Internal/OneofField.php b/src/Google/Protobuf/Internal/OneofField.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/Internal/OneofField.php rename to src/Google/Protobuf/Internal/OneofField.php diff --git a/src/google/protobuf/src/Google/Protobuf/Internal/OneofOptions.php b/src/Google/Protobuf/Internal/OneofOptions.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/Internal/OneofOptions.php rename to src/Google/Protobuf/Internal/OneofOptions.php diff --git a/src/google/protobuf/src/Google/Protobuf/Internal/RawInputStream.php b/src/Google/Protobuf/Internal/RawInputStream.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/Internal/RawInputStream.php rename to src/Google/Protobuf/Internal/RawInputStream.php diff --git a/src/google/protobuf/src/Google/Protobuf/Internal/RepeatedField.php b/src/Google/Protobuf/Internal/RepeatedField.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/Internal/RepeatedField.php rename to src/Google/Protobuf/Internal/RepeatedField.php diff --git a/src/google/protobuf/src/Google/Protobuf/Internal/RepeatedFieldIter.php b/src/Google/Protobuf/Internal/RepeatedFieldIter.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/Internal/RepeatedFieldIter.php rename to src/Google/Protobuf/Internal/RepeatedFieldIter.php diff --git a/src/google/protobuf/src/Google/Protobuf/Internal/ServiceDescriptorProto.php b/src/Google/Protobuf/Internal/ServiceDescriptorProto.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/Internal/ServiceDescriptorProto.php rename to src/Google/Protobuf/Internal/ServiceDescriptorProto.php diff --git a/src/google/protobuf/src/Google/Protobuf/Internal/ServiceOptions.php b/src/Google/Protobuf/Internal/ServiceOptions.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/Internal/ServiceOptions.php rename to src/Google/Protobuf/Internal/ServiceOptions.php diff --git a/src/google/protobuf/src/Google/Protobuf/Internal/SourceCodeInfo.php b/src/Google/Protobuf/Internal/SourceCodeInfo.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/Internal/SourceCodeInfo.php rename to src/Google/Protobuf/Internal/SourceCodeInfo.php diff --git a/src/google/protobuf/src/Google/Protobuf/Internal/SourceCodeInfo/Location.php b/src/Google/Protobuf/Internal/SourceCodeInfo/Location.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/Internal/SourceCodeInfo/Location.php rename to src/Google/Protobuf/Internal/SourceCodeInfo/Location.php diff --git a/src/google/protobuf/src/Google/Protobuf/Internal/SourceCodeInfo_Location.php b/src/Google/Protobuf/Internal/SourceCodeInfo_Location.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/Internal/SourceCodeInfo_Location.php rename to src/Google/Protobuf/Internal/SourceCodeInfo_Location.php diff --git a/src/google/protobuf/src/Google/Protobuf/Internal/UninterpretedOption.php b/src/Google/Protobuf/Internal/UninterpretedOption.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/Internal/UninterpretedOption.php rename to src/Google/Protobuf/Internal/UninterpretedOption.php diff --git a/src/google/protobuf/src/Google/Protobuf/Internal/UninterpretedOption/NamePart.php b/src/Google/Protobuf/Internal/UninterpretedOption/NamePart.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/Internal/UninterpretedOption/NamePart.php rename to src/Google/Protobuf/Internal/UninterpretedOption/NamePart.php diff --git a/src/google/protobuf/src/Google/Protobuf/Internal/UninterpretedOption_NamePart.php b/src/Google/Protobuf/Internal/UninterpretedOption_NamePart.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/Internal/UninterpretedOption_NamePart.php rename to src/Google/Protobuf/Internal/UninterpretedOption_NamePart.php diff --git a/src/google/protobuf/src/Google/Protobuf/ListValue.php b/src/Google/Protobuf/ListValue.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/ListValue.php rename to src/Google/Protobuf/ListValue.php diff --git a/src/google/protobuf/src/Google/Protobuf/Method.php b/src/Google/Protobuf/Method.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/Method.php rename to src/Google/Protobuf/Method.php diff --git a/src/google/protobuf/src/Google/Protobuf/Mixin.php b/src/Google/Protobuf/Mixin.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/Mixin.php rename to src/Google/Protobuf/Mixin.php diff --git a/src/google/protobuf/src/Google/Protobuf/NullValue.php b/src/Google/Protobuf/NullValue.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/NullValue.php rename to src/Google/Protobuf/NullValue.php diff --git a/src/google/protobuf/src/Google/Protobuf/OneofDescriptor.php b/src/Google/Protobuf/OneofDescriptor.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/OneofDescriptor.php rename to src/Google/Protobuf/OneofDescriptor.php diff --git a/src/google/protobuf/src/Google/Protobuf/Option.php b/src/Google/Protobuf/Option.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/Option.php rename to src/Google/Protobuf/Option.php diff --git a/src/google/protobuf/src/Google/Protobuf/SourceContext.php b/src/Google/Protobuf/SourceContext.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/SourceContext.php rename to src/Google/Protobuf/SourceContext.php diff --git a/src/google/protobuf/src/Google/Protobuf/StringValue.php b/src/Google/Protobuf/StringValue.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/StringValue.php rename to src/Google/Protobuf/StringValue.php diff --git a/src/google/protobuf/src/Google/Protobuf/Struct.php b/src/Google/Protobuf/Struct.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/Struct.php rename to src/Google/Protobuf/Struct.php diff --git a/src/google/protobuf/src/Google/Protobuf/Syntax.php b/src/Google/Protobuf/Syntax.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/Syntax.php rename to src/Google/Protobuf/Syntax.php diff --git a/src/google/protobuf/src/Google/Protobuf/Timestamp.php b/src/Google/Protobuf/Timestamp.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/Timestamp.php rename to src/Google/Protobuf/Timestamp.php diff --git a/src/google/protobuf/src/Google/Protobuf/Type.php b/src/Google/Protobuf/Type.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/Type.php rename to src/Google/Protobuf/Type.php diff --git a/src/google/protobuf/src/Google/Protobuf/UInt32Value.php b/src/Google/Protobuf/UInt32Value.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/UInt32Value.php rename to src/Google/Protobuf/UInt32Value.php diff --git a/src/google/protobuf/src/Google/Protobuf/UInt64Value.php b/src/Google/Protobuf/UInt64Value.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/UInt64Value.php rename to src/Google/Protobuf/UInt64Value.php diff --git a/src/google/protobuf/src/Google/Protobuf/Value.php b/src/Google/Protobuf/Value.php similarity index 100% rename from src/google/protobuf/src/Google/Protobuf/Value.php rename to src/Google/Protobuf/Value.php diff --git a/src/google/protobuf/LICENSE b/src/google/protobuf/LICENSE deleted file mode 100644 index ba32af4..0000000 --- a/src/google/protobuf/LICENSE +++ /dev/null @@ -1,29 +0,0 @@ -BSD 3-Clause License - -Copyright (c) 2019, Protocol Buffers -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -* Redistributions of source code must retain the above copyright notice, this - list of conditions and the following disclaimer. - -* Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - -* Neither the name of the copyright holder nor the names of its - contributors may be used to endorse or promote products derived from - this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/src/google/protobuf/README.md b/src/google/protobuf/README.md deleted file mode 100644 index 3663050..0000000 --- a/src/google/protobuf/README.md +++ /dev/null @@ -1,2 +0,0 @@ -# protobuf-php -This repository contains only PHP files to support Composer installation. This repository is a mirror of [protobuf](https://github.com/protocolbuffers/protobuf). Any support requests, bug reports, or development contributions should be directed to that project. To install protobuf for PHP, please see https://github.com/protocolbuffers/protobuf/tree/master/php diff --git a/src/google/protobuf/composer.json b/src/google/protobuf/composer.json deleted file mode 100644 index 69a3297..0000000 --- a/src/google/protobuf/composer.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "name": "google/protobuf", - "type": "library", - "description": "proto library for PHP", - "keywords": ["proto"], - "homepage": "https://developers.google.com/protocol-buffers/", - "license": "BSD-3-Clause", - "require": { - "php": ">=5.5.0" - }, - "require-dev": { - "phpunit/phpunit": ">=4.8.0" - }, - "suggest": { - "ext-bcmath": "Need to support JSON deserialization" - }, - "autoload": { - "psr-4": { - "Google\\Protobuf\\": "src/Google/Protobuf", - "GPBMetadata\\Google\\Protobuf\\": "src/GPBMetadata/Google/Protobuf" - } - } -} diff --git a/src/google/protobuf/src/phpdoc.dist.xml b/src/google/protobuf/src/phpdoc.dist.xml deleted file mode 100644 index dd31302..0000000 --- a/src/google/protobuf/src/phpdoc.dist.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - - - doc - - - doc - - - Google/Protobuf/Internal/MapField.php - Google/Protobuf/Internal/Message.php - Google/Protobuf/Internal/RepeatedField.php - - diff --git a/src/gtfs/realtime-php/src/GPBMetadata/GtfsRealtime.php b/src/gtfs/GPBMetadata/GtfsRealtime.php similarity index 100% rename from src/gtfs/realtime-php/src/GPBMetadata/GtfsRealtime.php rename to src/gtfs/GPBMetadata/GtfsRealtime.php diff --git a/src/gtfs/realtime-php/src/Google/Transit/Realtime/Alert.php b/src/gtfs/Google/Transit/Realtime/Alert.php similarity index 100% rename from src/gtfs/realtime-php/src/Google/Transit/Realtime/Alert.php rename to src/gtfs/Google/Transit/Realtime/Alert.php diff --git a/src/gtfs/realtime-php/src/Google/Transit/Realtime/Alert/Cause.php b/src/gtfs/Google/Transit/Realtime/Alert/Cause.php similarity index 100% rename from src/gtfs/realtime-php/src/Google/Transit/Realtime/Alert/Cause.php rename to src/gtfs/Google/Transit/Realtime/Alert/Cause.php diff --git a/src/gtfs/realtime-php/src/Google/Transit/Realtime/Alert/Effect.php b/src/gtfs/Google/Transit/Realtime/Alert/Effect.php similarity index 100% rename from src/gtfs/realtime-php/src/Google/Transit/Realtime/Alert/Effect.php rename to src/gtfs/Google/Transit/Realtime/Alert/Effect.php diff --git a/src/gtfs/realtime-php/src/Google/Transit/Realtime/Alert_Cause.php b/src/gtfs/Google/Transit/Realtime/Alert_Cause.php similarity index 100% rename from src/gtfs/realtime-php/src/Google/Transit/Realtime/Alert_Cause.php rename to src/gtfs/Google/Transit/Realtime/Alert_Cause.php diff --git a/src/gtfs/realtime-php/src/Google/Transit/Realtime/Alert_Effect.php b/src/gtfs/Google/Transit/Realtime/Alert_Effect.php similarity index 100% rename from src/gtfs/realtime-php/src/Google/Transit/Realtime/Alert_Effect.php rename to src/gtfs/Google/Transit/Realtime/Alert_Effect.php diff --git a/src/gtfs/realtime-php/src/Google/Transit/Realtime/EntitySelector.php b/src/gtfs/Google/Transit/Realtime/EntitySelector.php similarity index 100% rename from src/gtfs/realtime-php/src/Google/Transit/Realtime/EntitySelector.php rename to src/gtfs/Google/Transit/Realtime/EntitySelector.php diff --git a/src/gtfs/realtime-php/src/Google/Transit/Realtime/FeedEntity.php b/src/gtfs/Google/Transit/Realtime/FeedEntity.php similarity index 100% rename from src/gtfs/realtime-php/src/Google/Transit/Realtime/FeedEntity.php rename to src/gtfs/Google/Transit/Realtime/FeedEntity.php diff --git a/src/gtfs/realtime-php/src/Google/Transit/Realtime/FeedHeader.php b/src/gtfs/Google/Transit/Realtime/FeedHeader.php similarity index 100% rename from src/gtfs/realtime-php/src/Google/Transit/Realtime/FeedHeader.php rename to src/gtfs/Google/Transit/Realtime/FeedHeader.php diff --git a/src/gtfs/realtime-php/src/Google/Transit/Realtime/FeedHeader/Incrementality.php b/src/gtfs/Google/Transit/Realtime/FeedHeader/Incrementality.php similarity index 100% rename from src/gtfs/realtime-php/src/Google/Transit/Realtime/FeedHeader/Incrementality.php rename to src/gtfs/Google/Transit/Realtime/FeedHeader/Incrementality.php diff --git a/src/gtfs/realtime-php/src/Google/Transit/Realtime/FeedHeader_Incrementality.php b/src/gtfs/Google/Transit/Realtime/FeedHeader_Incrementality.php similarity index 100% rename from src/gtfs/realtime-php/src/Google/Transit/Realtime/FeedHeader_Incrementality.php rename to src/gtfs/Google/Transit/Realtime/FeedHeader_Incrementality.php diff --git a/src/gtfs/realtime-php/src/Google/Transit/Realtime/FeedMessage.php b/src/gtfs/Google/Transit/Realtime/FeedMessage.php similarity index 100% rename from src/gtfs/realtime-php/src/Google/Transit/Realtime/FeedMessage.php rename to src/gtfs/Google/Transit/Realtime/FeedMessage.php diff --git a/src/gtfs/realtime-php/src/Google/Transit/Realtime/Position.php b/src/gtfs/Google/Transit/Realtime/Position.php similarity index 100% rename from src/gtfs/realtime-php/src/Google/Transit/Realtime/Position.php rename to src/gtfs/Google/Transit/Realtime/Position.php diff --git a/src/gtfs/realtime-php/src/Google/Transit/Realtime/TimeRange.php b/src/gtfs/Google/Transit/Realtime/TimeRange.php similarity index 100% rename from src/gtfs/realtime-php/src/Google/Transit/Realtime/TimeRange.php rename to src/gtfs/Google/Transit/Realtime/TimeRange.php diff --git a/src/gtfs/realtime-php/src/Google/Transit/Realtime/TranslatedString.php b/src/gtfs/Google/Transit/Realtime/TranslatedString.php similarity index 100% rename from src/gtfs/realtime-php/src/Google/Transit/Realtime/TranslatedString.php rename to src/gtfs/Google/Transit/Realtime/TranslatedString.php diff --git a/src/gtfs/realtime-php/src/Google/Transit/Realtime/TranslatedString/Translation.php b/src/gtfs/Google/Transit/Realtime/TranslatedString/Translation.php similarity index 100% rename from src/gtfs/realtime-php/src/Google/Transit/Realtime/TranslatedString/Translation.php rename to src/gtfs/Google/Transit/Realtime/TranslatedString/Translation.php diff --git a/src/gtfs/realtime-php/src/Google/Transit/Realtime/TranslatedString_Translation.php b/src/gtfs/Google/Transit/Realtime/TranslatedString_Translation.php similarity index 100% rename from src/gtfs/realtime-php/src/Google/Transit/Realtime/TranslatedString_Translation.php rename to src/gtfs/Google/Transit/Realtime/TranslatedString_Translation.php diff --git a/src/gtfs/realtime-php/src/Google/Transit/Realtime/TripDescriptor.php b/src/gtfs/Google/Transit/Realtime/TripDescriptor.php similarity index 100% rename from src/gtfs/realtime-php/src/Google/Transit/Realtime/TripDescriptor.php rename to src/gtfs/Google/Transit/Realtime/TripDescriptor.php diff --git a/src/gtfs/realtime-php/src/Google/Transit/Realtime/TripDescriptor/ScheduleRelationship.php b/src/gtfs/Google/Transit/Realtime/TripDescriptor/ScheduleRelationship.php similarity index 100% rename from src/gtfs/realtime-php/src/Google/Transit/Realtime/TripDescriptor/ScheduleRelationship.php rename to src/gtfs/Google/Transit/Realtime/TripDescriptor/ScheduleRelationship.php diff --git a/src/gtfs/realtime-php/src/Google/Transit/Realtime/TripDescriptor_ScheduleRelationship.php b/src/gtfs/Google/Transit/Realtime/TripDescriptor_ScheduleRelationship.php similarity index 100% rename from src/gtfs/realtime-php/src/Google/Transit/Realtime/TripDescriptor_ScheduleRelationship.php rename to src/gtfs/Google/Transit/Realtime/TripDescriptor_ScheduleRelationship.php diff --git a/src/gtfs/realtime-php/src/Google/Transit/Realtime/TripUpdate.php b/src/gtfs/Google/Transit/Realtime/TripUpdate.php similarity index 100% rename from src/gtfs/realtime-php/src/Google/Transit/Realtime/TripUpdate.php rename to src/gtfs/Google/Transit/Realtime/TripUpdate.php diff --git a/src/gtfs/realtime-php/src/Google/Transit/Realtime/TripUpdate/StopTimeEvent.php b/src/gtfs/Google/Transit/Realtime/TripUpdate/StopTimeEvent.php similarity index 100% rename from src/gtfs/realtime-php/src/Google/Transit/Realtime/TripUpdate/StopTimeEvent.php rename to src/gtfs/Google/Transit/Realtime/TripUpdate/StopTimeEvent.php diff --git a/src/gtfs/realtime-php/src/Google/Transit/Realtime/TripUpdate/StopTimeUpdate.php b/src/gtfs/Google/Transit/Realtime/TripUpdate/StopTimeUpdate.php similarity index 100% rename from src/gtfs/realtime-php/src/Google/Transit/Realtime/TripUpdate/StopTimeUpdate.php rename to src/gtfs/Google/Transit/Realtime/TripUpdate/StopTimeUpdate.php diff --git a/src/gtfs/realtime-php/src/Google/Transit/Realtime/TripUpdate/StopTimeUpdate/ScheduleRelationship.php b/src/gtfs/Google/Transit/Realtime/TripUpdate/StopTimeUpdate/ScheduleRelationship.php similarity index 100% rename from src/gtfs/realtime-php/src/Google/Transit/Realtime/TripUpdate/StopTimeUpdate/ScheduleRelationship.php rename to src/gtfs/Google/Transit/Realtime/TripUpdate/StopTimeUpdate/ScheduleRelationship.php diff --git a/src/gtfs/realtime-php/src/Google/Transit/Realtime/TripUpdate_StopTimeEvent.php b/src/gtfs/Google/Transit/Realtime/TripUpdate_StopTimeEvent.php similarity index 100% rename from src/gtfs/realtime-php/src/Google/Transit/Realtime/TripUpdate_StopTimeEvent.php rename to src/gtfs/Google/Transit/Realtime/TripUpdate_StopTimeEvent.php diff --git a/src/gtfs/realtime-php/src/Google/Transit/Realtime/TripUpdate_StopTimeUpdate.php b/src/gtfs/Google/Transit/Realtime/TripUpdate_StopTimeUpdate.php similarity index 100% rename from src/gtfs/realtime-php/src/Google/Transit/Realtime/TripUpdate_StopTimeUpdate.php rename to src/gtfs/Google/Transit/Realtime/TripUpdate_StopTimeUpdate.php diff --git a/src/gtfs/realtime-php/src/Google/Transit/Realtime/TripUpdate_StopTimeUpdate_ScheduleRelationship.php b/src/gtfs/Google/Transit/Realtime/TripUpdate_StopTimeUpdate_ScheduleRelationship.php similarity index 100% rename from src/gtfs/realtime-php/src/Google/Transit/Realtime/TripUpdate_StopTimeUpdate_ScheduleRelationship.php rename to src/gtfs/Google/Transit/Realtime/TripUpdate_StopTimeUpdate_ScheduleRelationship.php diff --git a/src/gtfs/realtime-php/src/Google/Transit/Realtime/VehicleDescriptor.php b/src/gtfs/Google/Transit/Realtime/VehicleDescriptor.php similarity index 100% rename from src/gtfs/realtime-php/src/Google/Transit/Realtime/VehicleDescriptor.php rename to src/gtfs/Google/Transit/Realtime/VehicleDescriptor.php diff --git a/src/gtfs/realtime-php/src/Google/Transit/Realtime/VehiclePosition.php b/src/gtfs/Google/Transit/Realtime/VehiclePosition.php similarity index 100% rename from src/gtfs/realtime-php/src/Google/Transit/Realtime/VehiclePosition.php rename to src/gtfs/Google/Transit/Realtime/VehiclePosition.php diff --git a/src/gtfs/realtime-php/src/Google/Transit/Realtime/VehiclePosition/CongestionLevel.php b/src/gtfs/Google/Transit/Realtime/VehiclePosition/CongestionLevel.php similarity index 100% rename from src/gtfs/realtime-php/src/Google/Transit/Realtime/VehiclePosition/CongestionLevel.php rename to src/gtfs/Google/Transit/Realtime/VehiclePosition/CongestionLevel.php diff --git a/src/gtfs/realtime-php/src/Google/Transit/Realtime/VehiclePosition/OccupancyStatus.php b/src/gtfs/Google/Transit/Realtime/VehiclePosition/OccupancyStatus.php similarity index 100% rename from src/gtfs/realtime-php/src/Google/Transit/Realtime/VehiclePosition/OccupancyStatus.php rename to src/gtfs/Google/Transit/Realtime/VehiclePosition/OccupancyStatus.php diff --git a/src/gtfs/realtime-php/src/Google/Transit/Realtime/VehiclePosition/VehicleStopStatus.php b/src/gtfs/Google/Transit/Realtime/VehiclePosition/VehicleStopStatus.php similarity index 100% rename from src/gtfs/realtime-php/src/Google/Transit/Realtime/VehiclePosition/VehicleStopStatus.php rename to src/gtfs/Google/Transit/Realtime/VehiclePosition/VehicleStopStatus.php diff --git a/src/gtfs/realtime-php/src/Google/Transit/Realtime/VehiclePosition_CongestionLevel.php b/src/gtfs/Google/Transit/Realtime/VehiclePosition_CongestionLevel.php similarity index 100% rename from src/gtfs/realtime-php/src/Google/Transit/Realtime/VehiclePosition_CongestionLevel.php rename to src/gtfs/Google/Transit/Realtime/VehiclePosition_CongestionLevel.php diff --git a/src/gtfs/realtime-php/src/Google/Transit/Realtime/VehiclePosition_OccupancyStatus.php b/src/gtfs/Google/Transit/Realtime/VehiclePosition_OccupancyStatus.php similarity index 100% rename from src/gtfs/realtime-php/src/Google/Transit/Realtime/VehiclePosition_OccupancyStatus.php rename to src/gtfs/Google/Transit/Realtime/VehiclePosition_OccupancyStatus.php diff --git a/src/gtfs/realtime-php/src/Google/Transit/Realtime/VehiclePosition_VehicleStopStatus.php b/src/gtfs/Google/Transit/Realtime/VehiclePosition_VehicleStopStatus.php similarity index 100% rename from src/gtfs/realtime-php/src/Google/Transit/Realtime/VehiclePosition_VehicleStopStatus.php rename to src/gtfs/Google/Transit/Realtime/VehiclePosition_VehicleStopStatus.php diff --git a/src/gtfs/realtime-php/.gitignore b/src/gtfs/realtime-php/.gitignore deleted file mode 100644 index f2d6f49..0000000 --- a/src/gtfs/realtime-php/.gitignore +++ /dev/null @@ -1,15 +0,0 @@ -# JETBRAINS IDEs -.idea/ - -# OS generated files -.DS_Store -.DS_Store? -._* -.Spotlight-V100 -.Trashes -Icon? -ehthumbs.db -Thumbs.db - -## Project Specific -/vendor/* diff --git a/src/gtfs/realtime-php/LICENSE.md b/src/gtfs/realtime-php/LICENSE.md deleted file mode 100644 index 00d2e13..0000000 --- a/src/gtfs/realtime-php/LICENSE.md +++ /dev/null @@ -1,24 +0,0 @@ -This is free and unencumbered software released into the public domain. - -Anyone is free to copy, modify, publish, use, compile, sell, or -distribute this software, either in source code form or as a compiled -binary, for any purpose, commercial or non-commercial, and by any -means. - -In jurisdictions that recognize copyright laws, the author or authors -of this software dedicate any and all copyright interest in the -software to the public domain. We make this dedication for the benefit -of the public at large and to the detriment of our heirs and -successors. We intend this dedication to be an overt act of -relinquishment in perpetuity of all present and future rights to this -software under copyright law. - -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 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. - -For more information, please refer to \ No newline at end of file diff --git a/src/gtfs/realtime-php/README.md b/src/gtfs/realtime-php/README.md deleted file mode 100644 index a49528c..0000000 --- a/src/gtfs/realtime-php/README.md +++ /dev/null @@ -1,24 +0,0 @@ -# GTFS Realtime PHP - -Simple wrapper for GTFS-Realtime in PHP based on Google's [Protocol Buffers](https://github.com/protocolbuffers/protobuf-php). - -## Usage -The library is kept simple to use for creating and parsing GTFS-Realtime feeds in PHP applications. See -the simple examples for [creating](/examples/create_message.php) and [parsing](/examples/parse_message.php) a feed message. - -### Installation -Clone the package into your target directory and run -``` -composer update -``` -in your command line. This will install all dependencies and create your autoloader. - -You can use the autoloader by including ```[MainDirectory]/vendor/autoload.php``` in the head section -of your PHP file. - -### - -## License -The library package is licensed under "The Unlicense" - For the simple reason that there's -nothing in this code at all, which you could not create for yourself using Google's protoc-Compiler -and the corresponding definition file for GTFS-Realtime. \ No newline at end of file diff --git a/src/gtfs/realtime-php/composer.json b/src/gtfs/realtime-php/composer.json deleted file mode 100644 index 527951a..0000000 --- a/src/gtfs/realtime-php/composer.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "name": "gtfs/realtime-php", - "type": "library", - "description": "GTFS-Realtime library for PHP", - "keywords": ["proto, protobuf, protocol buffers, gtfs, gtfs-realtime, gtfs-rt"], - "license": "The Unlicense", - "require": { - "google/protobuf": "3.10.0" - }, - "autoload": { - "psr-4": { - "Google\\Transit\\Realtime\\": "src/Google/Transit/Realtime", - "GPBMetadata\\Src\\": "src/GPBMetadata" - } - } -} \ No newline at end of file diff --git a/src/gtfs/realtime-php/composer.lock b/src/gtfs/realtime-php/composer.lock deleted file mode 100644 index ed6a831..0000000 --- a/src/gtfs/realtime-php/composer.lock +++ /dev/null @@ -1,59 +0,0 @@ -{ - "_readme": [ - "This file locks the dependencies of your project to a known state", - "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", - "This file is @generated automatically" - ], - "content-hash": "b57f1399d894cfc98906fa6376e82ca4", - "packages": [ - { - "name": "google/protobuf", - "version": "v3.10.0", - "source": { - "type": "git", - "url": "https://github.com/protocolbuffers/protobuf-php.git", - "reference": "5dffdd2c84112e6c91fd84f92e3df96649426881" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/protocolbuffers/protobuf-php/zipball/5dffdd2c84112e6c91fd84f92e3df96649426881", - "reference": "5dffdd2c84112e6c91fd84f92e3df96649426881", - "shasum": "" - }, - "require": { - "php": ">=5.5.0" - }, - "require-dev": { - "phpunit/phpunit": ">=4.8.0" - }, - "suggest": { - "ext-bcmath": "Need to support JSON deserialization" - }, - "type": "library", - "autoload": { - "psr-4": { - "Google\\Protobuf\\": "src/Google/Protobuf", - "GPBMetadata\\Google\\Protobuf\\": "src/GPBMetadata/Google/Protobuf" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "description": "proto library for PHP", - "homepage": "https://developers.google.com/protocol-buffers/", - "keywords": [ - "proto" - ], - "time": "2019-10-03T20:08:37+00:00" - } - ], - "packages-dev": [], - "aliases": [], - "minimum-stability": "stable", - "stability-flags": [], - "prefer-stable": false, - "prefer-lowest": false, - "platform": [], - "platform-dev": [] -} diff --git a/src/gtfs/realtime-php/examples/ExampleAlert.json b/src/gtfs/realtime-php/examples/ExampleAlert.json deleted file mode 100644 index e0f6a9e..0000000 --- a/src/gtfs/realtime-php/examples/ExampleAlert.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "header": { - "gtfsRealtimeVersion": "2.0", - "timestamp": "1571598947" - }, - "entity": [ - { - "id": "125522", - "alert": { - "activePeriod": [ - { - "start": "1571598947" - } - ], - "informedEntity": [ - { - "stopId": "1" - }, - { - "stopId": "2" - } - ], - "cause": "OTHER_CAUSE", - "effect": "OTHER_EFFECT", - "headerText": { - "translation": [ - { - "text": "Test-Message", - "language": "de" - } - ] - }, - "descriptionText": { - "translation": [ - { - "text": "TEST MESSAGE", - "language": "de" - } - ] - } - } - } - ] -} \ No newline at end of file diff --git a/src/gtfs/realtime-php/examples/ExampleAlert.pb b/src/gtfs/realtime-php/examples/ExampleAlert.pb deleted file mode 100644 index 87a79e6..0000000 --- a/src/gtfs/realtime-php/examples/ExampleAlert.pb +++ /dev/null @@ -1,9 +0,0 @@ - - -2.0ãä²íL -125522*B -ãä²í**1**208R - - Test-MessagedeZ - - TEST MESSAGEde \ No newline at end of file diff --git a/src/gtfs/realtime-php/examples/create_message.php b/src/gtfs/realtime-php/examples/create_message.php deleted file mode 100644 index ed8551b..0000000 --- a/src/gtfs/realtime-php/examples/create_message.php +++ /dev/null @@ -1,63 +0,0 @@ -setGtfsRealtimeVersion('2.0'); -$messageHeader->setTimestamp(time()); - - -// create one alert body -$alert = new Alert(); - -$alert->setActivePeriod([ - new TimeRange(['start' => time()]) -]); - -$alert->setInformedEntity([ - new EntitySelector(['stop_id' => 1]), - new EntitySelector(['stop_id' => 2]) -]); - -$alert->setCause(Alert\Cause::OTHER_CAUSE); -$alert->setEffect(Alert\Effect::OTHER_EFFECT); - -$alert->setHeaderText(new TranslatedString([ - 'translation' => [ - new Translation([ - 'text' => 'Test-Message', - 'language' => 'de' - ] - )] -])); - -$alert->setDescriptionText(new TranslatedString([ - 'translation' => [ - new Translation([ - 'text' => 'TEST MESSAGE', - 'language' => 'de' - ] - )] -])); - -// create alert entity -$messageEntity = new FeedEntity(); -$messageEntity->setId(125522); -$messageEntity->setAlert($alert); - -// create feed message -$feedMessage = new FeedMessage(); -$feedMessage->setHeader($messageHeader); -$feedMessage->setEntity([$messageEntity]); - -file_put_contents('ExampleAlert.pb', $feedMessage->serializeToString()); diff --git a/src/gtfs/realtime-php/examples/parse_message.php b/src/gtfs/realtime-php/examples/parse_message.php deleted file mode 100644 index f9e8a43..0000000 --- a/src/gtfs/realtime-php/examples/parse_message.php +++ /dev/null @@ -1,11 +0,0 @@ -mergeFromString($pbfContent); - -file_put_contents('ExampleAlert.json', json_encode(json_decode($feedMessage->serializeToJsonString()), JSON_PRETTY_PRINT)); \ No newline at end of file